Skip to main content
POST
Fund trades

Authorizations

Authorization
string
header
required

Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.

Body

application/json

Request body for funding operations. signature/permit2 are required for gross/net and for delegate/net_delegate funding.

type
enum<string>
required

The type of trader.

Available options:
maker,
taker
signature
string
required

The trader's Permit2 signature over permit2.

Example:

"0x1234567890abcdef..."

permit2
object
required

The Permit2 message object signed by the trader (type). Single or batch funding message carrying the actual delivery amount for gross/net; for fundingMode delegate/net_delegate, this is instead the trader's zero-amount delegate-funding authorization (single or batch depending on trade count) that authorizes the funder to deliver on their behalf.

fundingMode
enum<string>
default:gross

The funding mode for the operation (optional)

Available options:
gross,
net,
delegate,
net_delegate
funderPermit2
object

The funder's delegate-funding payload, carrying the actual delivery amount(s), collected out-of-band by the funder. Required when fundingMode is delegate or net_delegate.

funderSignature
string

The funder's signature over funderPermit2. Required when fundingMode is delegate or net_delegate.

Example:

"0xabcdef1234567890..."

Response

Funding completed successfully