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's503 escrow_disabledand403 escrow_offcome first).GET /v1/capabilitiesanswersfeatures.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
- Quote.
POST /v1/prefunding/quoteswith{escrow, milestone, provider}. The escrow must be funded, and the milestone open or submitted and not already pledged. The answer carriesassignment, the typed data the seller signs. - Take the quote.
POST /v1/prefunding/advanceswith{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 answers409 milestone_already_pledgedand nothing is written. - 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. - 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.
Related
- SET Escrow
- List prefunding providers
- Ask a provider to quote a milestone
- Take a quote: assign the milestone's payout
- Cancel an advance before it is disbursed
- List advances
- Read an advance
- Sandbox: the provider disburses
- Webhooks and events
Changes
- 2026-11-18: OpenAPI, Postman and docs re-synced from the wallet at; Crypto Suite /v1 calls follow the wallet's marks.