Skip to main content

Eip712OrderTypedData

domain object
namestring

Name of the signing domain

Example: ExchangeSwapOperator
versionstring

The current version of the signing domain

Example: 1.0.0
chainIdnumber

Numeric identifier of the blockchain

Example: 137
verifyingContractstring

Address of the contract on the blockchain that verifies the signature

Example: 0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC
types object
EIP712Domain object[]
  • Array [
  • namestring
    typestring
  • ]
  • Order object[]
  • Array [
  • summarystring
    orderTypestring
    amountnumber
    pricenumber
    tokenstring
    signerstring
    expirationDatenumber
    idnumber
  • ]
  • primaryTypestring
    Example: Order
    message object
    summarystring

    Order Summary

    Example: Sell 1 TCToken for 1 EUROe
    orderTypestring

    Type of order Sell/Buy

    Example: Sell
    amountnumber

    Maximum amount of tokens to sell/buy

    Example: 5
    pricenumber

    Price at which one is willing to sell/buy

    Example: 5
    tokenstring

    Address of the token’s contract

    Example: 0x123456A9571241e97cDb61E3FfD1937D885454AA
    signerstring

    Address of the wallet signing the order

    Example: 0x123456A9571241e97cDb61E3FfD1937D885454dd
    expirationDatenumber

    Expiration date of the order

    Example: 1759915647
    idnumber

    Order identifier

    Example: 1564
    Eip712OrderTypedData
    {
    "domain": {
    "name": "ExchangeSwapOperator",
    "version": "1.0.0",
    "chainId": 137,
    "verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
    },
    "types": {
    "EIP712Domain": [
    {
    "name": "string",
    "type": "string"
    }
    ],
    "Order": [
    {
    "summary": "string",
    "orderType": "string",
    "amount": 0,
    "price": 0,
    "token": "string",
    "signer": "string",
    "expirationDate": 0,
    "id": 0
    }
    ]
    },
    "primaryType": "Order",
    "message": {
    "summary": "Sell 1 TCToken for 1 EUROe",
    "orderType": "Sell",
    "amount": 5,
    "price": 5,
    "token": "0x123456A9571241e97cDb61E3FfD1937D885454AA",
    "signer": "0x123456A9571241e97cDb61E3FfD1937D885454dd",
    "expirationDate": 1759915647,
    "id": 1564
    }
    }