Eip712OrderTypedData
domain objectrequired
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
Possible values: Value must match regular expression ^0x[0-9a-fA-F]{40}$
Example:
0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccCtypes objectrequired
EIP712Domain object[]
Array [
namestring
typestring
]
Order object[]
Array [
summarystring
orderTypestring
amountnumber
pricenumber
tokenstring
signerstring
expirationDatenumber
idnumber
]
primaryTypestringrequired
Example:
Ordermessage objectrequired
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
Possible values: Value must match regular expression ‘^0x[0-9a-fA-F]{40}$’
Example:
‘0x123456A9571241e97cDb61E3FfD1937D885454AA’signerstring
Address of the wallet signing the order
Possible values: Value must match regular expression ‘^0x[0-9a-fA-F]{40}$’
Example:
‘0x123456A9571241e97cDb61E3FfD1937D885454dd’expirationDatenumber
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
}
}