Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-18
Browse: SET Crypto API Suite

Trade-finance prefunding

Status: current as of 2026-11-18.

A seller in a SET Escrow can be paid a funded milestone early by a prefunding provider, and the provider is repaid when the milestone is released. SET does not lend, quote or disburse. The provider does all three; SET records the seller's signed assignment and points the milestone's release at the provider's repayment address.

Switched off; available on request. Trade-finance prefunding is switched off for this deployment and, once switched on, per account, after SET Escrow's own switches. While it is off each call answers 503 prefunding_disabled; while it is off for your account, 403 prefunding_off (the escrow's 503 escrow_disabled and 403 escrow_off come first). GET /v1/capabilities answers features.tradeFinancePrefunding. Ask SET to switch it on for your account.

No live provider yet

No live prefunding provider is connected. On a live key, GET /v1/prefunding/providers answers an empty list with a note saying so. Staging keys see a sandbox provider: a fixed 2% fee, no money moves, and every answer says sandbox.

How it works

  1. Quote. POST /v1/prefunding/quotes with {escrow, milestone, provider}. The escrow must be funded, and the milestone open or submitted and not already pledged. The answer carries assignment, the typed data the seller signs.
  2. Take the quote. POST /v1/prefunding/advances with {quote, signature}, signed by the seller. In one database transaction SET stores the signature, writes the advance and locks the milestone's payout to the provider's repayment address. One live advance per milestone: a second answers 409 milestone_already_pledged and nothing is written.
  3. Disbursement. The provider pays the seller outside SET. Until it has, the milestone's release is refused (409 advance_pending). Before disbursement the advance can be cancelled (POST /v1/prefunding/advances/{id}/cancel), which unlocks the payout.
  4. Repayment. The milestone's release pays the provider's repayment address, and the advance becomes repaid.

GET /v1/prefunding/advances and GET /v1/prefunding/advances/{id} read advances. On staging, POST /v1/sandbox/prefunding/advances/{id}/advance has the sandbox provider disburse.

What the lock binds

The lock binds only the releases SET proposes. The escrow's Safe belongs to its owners, and on chain they can sign any transaction. A provider relies on the seller's signed assignment, not on SET controlling the Safe.

Events

prefunding.advance_requested, prefunding.advance_declined, prefunding.advance_disbursed, prefunding.advance_cancelled, prefunding.advance_repaid. See Webhooks and events.

Sources

Written on 2026-11-18 from the wallet's escrow and prefunding documentation (docs/escrow.md), routes and OpenAPI document at release 22a44bcb, where both switches are off in staging and production.

Changes

  • 2026-11-18: OpenAPI, Postman and docs re-synced from the wallet at; Crypto Suite /v1 calls follow the wallet's marks.