Eip712OrderTypedData
domain object
namestring
Name of the signing domain
Example:
ExchangeSwapOperatorversionstring
The current version of the signing domain
Example:
1.0.0chainIdnumber
Numeric identifier of the blockchain
Example:
137verifyingContractstring
Address of the contract on the blockchain that verifies the signature
Example:
0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccCtypes object
EIP712Domain object[]
Array [
namestring
typestring
]
Order object[]
Array [
summarystring
orderTypestring
amountnumber
pricenumber
tokenstring
signerstring
expirationDatenumber
idnumber
]
primaryTypestring
Example:
Ordermessage object
summarystring
Order Summary
Example:
Sell 1 TCToken for 1 EUROeorderTypestring
Type of order Sell/Buy
Example:
Sellamountnumber
Maximum amount of tokens to sell/buy
Example:
5pricenumber
Price at which one is willing to sell/buy
Example:
5tokenstring
Address of the token’s contract
Example:
0x123456A9571241e97cDb61E3FfD1937D885454AAsignerstring
Address of the wallet signing the order
Example:
0x123456A9571241e97cDb61E3FfD1937D885454ddexpirationDatenumber
Expiration date of the order
Example:
1759915647idnumber
Order identifier
Example:
1564Eip712OrderTypedData
{
"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
}
}