API Reference

Generate funding presign data

posthttps://api.circle.com/v1/exchange/stablefx/signatures/funding/presign

  • Reference
  • Playground

Returns the Permit2 EIP-712 payload that the trader must sign for funding operations.

Body parameters
type
string
Required

The type of trade.

Allowed valuesmakertaker
contractTradeIds
array of strings
Required

List of contract trade IDs

fundingMode
string

The funding mode for the operation.

Allowed valuesgrossnet
Response
RequestChoose a language
ResponseChoose an example
1{
2  "typedData": {
3    "domain": {
4      "name": "Permit2",
5      "chainId": 11155111,
6      "verifyingContract": "0xffd21ca8F0876DaFAD7de09404E0c1f868bbf1AE"
7    },
8    "types": {
9      "EIP712Domain": [
10        {
11          "name": "name",
12          "type": "string"
13        },
14        {
15          "name": "chainId",
16          "type": "uint256"
17        },
18        {
19          "name": "verifyingContract",
20          "type": "address"
21        }
22      ],
23      "TokenPermissions": [
24        {
25          "name": "token",
26          "type": "address"
27        },
28        {
29          "name": "amount",
30          "type": "uint256"
31        }
32      ],
33      "SingleTradeWitness": [
34        {
35          "name": "id",
36          "type": "uint256"
37        }
38      ],
39      "PermitWitnessTransferFrom": [
40        {
41          "name": "permitted",
42          "type": "TokenPermissions"
43        },
44        {
45          "name": "spender",
46          "type": "address"
47        },
48        {
49          "name": "nonce",
50          "type": "uint256"
51        },
52        {
53          "name": "deadline",
54          "type": "uint256"
55        },
56        {
57          "name": "witness",
58          "type": "SingleTradeWitness"
59        }
60      ]
61    },
62    "primaryType": "PermitWitnessTransferFrom",
63    "message": {
64      "permitted": {
65        "token": "0xTOKEN",
66        "amount": "1000"
67      },
68      "spender": "0xffd21ca8F0876DaFAD7de09404E0c1f868bbf1AE",
69      "nonce": "42",
70      "deadline": "1735689600",
71      "witness": {
72        "id": "10"
73      }
74    }
75  }
76}
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.