Skip to main content
GET
/
v1
/
exchange
/
stablefx
/
signatures
/
presign
/
{traderType}
/
{tradeId}
Generate trade presign data
curl --request GET \
  --url https://api.circle.com/v1/exchange/stablefx/signatures/presign/{traderType}/{tradeId} \
  --header 'Authorization: Bearer <token>'
{
  "typedData": {
    "domain": {
      "name": "Permit2",
      "chainId": 11155111,
      "verifyingContract": "0xffd21ca8F0876DaFAD7de09404E0c1f868bbf1AE"
    },
    "types": {
      "EIP712Domain": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "Consideration": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "TakerDetails": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "MakerDetails": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "TokenPermissions": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "PermitWitnessTransferFrom": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ]
    },
    "primaryType": "PermitWitnessTransferFrom",
    "message": {
      "permitted": {
        "token": "0x3600000000000000000000000000000000000000",
        "amount": 429000000
      },
      "spender": "0xa8f94168b4981840ba27d423f4ad6332bedee006",
      "nonce": 309585810,
      "deadline": 1770302983,
      "witness": {
        "consideration": {
          "quoteId": "<string>",
          "base": "<string>",
          "quote": "<string>",
          "baseAmount": "<string>",
          "quoteAmount": "<string>",
          "maturity": 1716153600
        },
        "fee": 80000,
        "recipient": "0x1f531ce3c418bbd830d06138a9e5b5eacfdfb3d6"
      }
    }
  }
}

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.

Path Parameters

traderType
enum<string>
required

The type of trader.

Available options:
maker,
taker
tradeId
string<uuid>
required

The ID of the trade. System-generated unique identifier of the resource.

Example:

"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"

Query Parameters

recipientAddress
string

The address of the recipient of the trade. Required when the traderType is taker. A blockchain address

Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

200 - application/json

Signature data generated successfully

Permit2 EIP-712 Typed Data for Trade Registration

typedData
object
required