Skjol

Arrival-delay cover for small importers, with fixed stablecoin payouts when ships arrive late.

Skjol

Created At

ETHGlobal Mumbai

Project Description

Skjol is insurance against late ships, built for small importers.

The problem. A small business that imports goods by sea depends on the ship arriving on time. When it's late, goods sit in port, production lines stop and customer deadlines slip, and the importer pays for it. Traditional cargo insurance doesn't cover this well. It's designed for large shippers, it covers damage or loss rather than delay, and a claim means paperwork, an adjuster and weeks of waiting.

What Skjol does. Skjol sells parametric arrival-delay cover. "Parametric" means the payout depends on one fact that can be checked, not on proving how much was lost. The fact is: did this vessel arrive at this port more than 24 hours after the agreed deadline? If yes, a fixed payout is sent automatically. If no, nothing happens.

How an importer uses it:

  1. Upload the bill of lading. AI reads the document and fills in the vessel (IMO number), the destination port and the arrival deadline. The importer checks these and confirms them.
  2. Get a quote and buy cover. The importer sees a fixed premium and a fixed payout, then pays the premium in USDC or EURC. The terms are locked into an on-chain policy, and the pool sets aside the full payout right away, so the money is guaranteed to be there.
  3. Wait for the ship. Skjol collects the real port-arrival record from public maritime data (Finland's Digitraffic, or VesselFinder) and submits it on chain.
  4. Get paid if it's late. The smart contract compares the recorded arrival with the locked deadline. If the ship is more than 24 hours late, the payout goes straight to the importer's wallet. There's no claim to file and no one deciding whether to pay.

Who provides the money. Funders deposit stablecoins into a shared pool and receive pool shares. They earn the premiums importers pay, and they cover the payouts. Their capital can't be withdrawn while it backs an open policy, so a funder can never exit ahead of a claim. A funder who wants out early can sell their shares on a Uniswap market.

The Freight Agent. Skjol also includes an AI agent that works for the importer. It can look up vessel and port data, paying for each request with small stablecoin payments (x402). It can also suggest and buy cover. Its spending is capped by limits on the server, every payment decision is publicly logged, and larger purchases need the person to tap Approve.

Privacy. Bills of lading are encrypted before they're stored. Shipment records are kept so that nobody can link a wallet to its cargo.

Try it. Everything runs on testnet with a demo wallet that has test funds. A demo product with a 2-minute threshold, instead of 24 hours, lets you buy cover, trigger a late arrival and watch the payout arrive in about five minutes.

How it's Made

Skjol is a Next.js 16 app on Vercel with a stateless backend: no database server and no custody wallet. Each partner technology handles one job, and the smart contract makes every payout decision.

Arc + Arc Studio (settlement). ShipmentDelayPool.sol is one contract with three roles: an ERC-4626 USDC vault, an EIP-712 quote verifier and a Chainlink CRE receiver. purchase() checks the server-signed quote and locks the vessel, port, deadline and payout into the policy. We moved the contract from Foundry into Arc Studio. Studio added boundary tests (exactly 24 hours late, ±1 second, duplicate reports, wrong pool) and ran a security review. We fixed what it found, and Studio redeployed the pool with 41 tests passing. Exits are priced on free capital so funders can't leave ahead of a claim. MIN_LIVE_SHARES blocks the vault inflation attack. If a USDC blocklist refuses a payout, trySafeTransfer turns it into an owed balance the importer can claim later. Gas is paid in USDC, the same contract runs a EURC pool, and Circle Bridge Kit (CCTP) brings EURC onto Arc.

Chainlink CRE (arrival evidence). A TypeScript workflow reads the policy from Arc, fetches the port call from Digitraffic or VesselFinder, and writes an ArrivalReport containing evidence only, never a decision. The contract validates the chain, pool, vessel and port, rejects stale or duplicate evidence, and decides "more than 24 hours late" itself. cre workflow simulate --broadcast paid out real test USDC on Arc Testnet.

Hedera + x402 (an agent that pays). The Freight Agent runs on the AI SDK through Vercel AI Gateway and is also available as an MCP server. Our port-data endpoints return HTTP 402 and accept two ways to pay: Arc USDC through Circle Gateway, or Hedera USDC settled by the x402.org facilitator, which pays the fee so the agent never needs HBAR. The server enforces a per-call maximum, a daily cap, a payee allow-list and a kill switch. Every decision is logged to Hedera Consensus Service, and larger cover purchases need a person to tap Approve.

Arkiv (the database). Shipments, policies, evidence, chain events and the agent's spending ledger are typed skjol.v1.* entities, and every screen reads from them. Three writer keys (app, observer, sync) show who wrote what, and private fields go in sealed bytes.

Swarm (documents). Bills of lading are encrypted in the app with AES-256-GCM and uploaded to Swarm /bytes. We skip Swarm's built-in encryption because its references contain the key and Arkiv is public. The reference is sealed inside the Arkiv entity, and every download is checked against a SHA-256 hash.

Uniswap V2. A skjolUSDC/USDC pair lets funders sell shares instead of waiting for reserved capital to be released.

background image mobile

Join the mailing list

Get the latest news and updates