Fund trades
Executes funding for trades using Permit2 signatures. This endpoint relays the signed permit data to complete the funding operation for trades.
When fundingMode is delegate, the request must include the trader’s delegate-funding authorization in permit2/signature along with the funder’s permit in funderPermit2/funderSignature. The funder delivers the tokens on the trader’s behalf; no tokens transfer from the trader.
Authorizations
Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
Body
Request body for funding operations
The type of trader.
maker, taker The trader's Permit2 signature over permit2
"0x1234567890abcdef..."
The Permit2 message object signed by the trader. Single or batch funding message for gross/net funding modes; delegate-funding authorization (with permitted.amount of 0) when fundingMode is delegate.
- Option 1
- Option 2
- Option 3
The funding mode for the operation (optional)
gross, net, delegate The Permit2 message object signed by the funder, carrying the actual delivery amount. Required when fundingMode is delegate.
The funder's Permit2 signature over funderPermit2. Required when fundingMode is delegate.
"0xabcdef1234567890..."
Response
Funding completed successfully