Skip to main content
GET
/
v1
/
exchange
/
stablefx
/
signatures
/
presign
/
{traderType}
/
{tradeId}
Generate trade presign data
curl --request GET \
  --url https://api-sandbox.circle.com/v1/exchange/stablefx/signatures/presign/{traderType}/{tradeId} \
  --header 'Authorization: Bearer <token>'
{
  "typedData": {
    "domain": {
      "name": "FxEscrow",
      "version": "1",
      "chainId": 5042002,
      "verifyingContract": "0x1f91886c7028986ad885ffcee0e40b75c9cd5ac1"
    },
    "types": {
      "EIP712Domain": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "Consideration": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "TakerDetails": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "MakerDetails": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ]
    },
    "primaryType": "TakerDetails",
    "message": {
      "consideration": {
        "quoteId": "<string>",
        "base": "<string>",
        "quote": "<string>",
        "baseAmount": "<string>",
        "quoteAmount": "<string>",
        "maturity": 1716153600
      },
      "fee": 442700,
      "nonce": 309585810,
      "deadline": 1763587308,
      "recipient": "0x379c868f6064d9c0564df05dcca170d64f8aa5e3"
    }
  }
}

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.

Example:

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

Query Parameters

recipientAddress
string

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

Example:

"0x1234567890abcdef1234567890abcdef12345678"

Response

200 - application/json

Signature data generated successfully

EIP-712 typed data for a trade signature

typedData
object
required