Skip to main content

PostEIP712Swap

amountnumber

Amount of tokens to be swapped

Example: 10
signerstring

Blockchain address of the signer of the swap request

Example: 0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826
offerSignaturestring

EIP712 signature of the offer created

Example: 0xbb5673fc5d20b4f02a1fa6037a8a3118e01894340e1d8e4831429ac0ce151cb50b30b626834a8b673b5de910f0f06a7e388fda90bb0b4e8dce73e2bd861842ed1c
offer object
idnumber

Offer’s ID

Example: 123465
fromstring

Blockchain address of the wallet creating the offer

Example: 0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826
tokenAddressstring

Blockchain address of the offered token

Example: 0x0290FB167208Af455bB137780163b7B7a9a10C16
amountnumber

Amount of tokens to be offered

Example: 125
pricenumber

Price per offered token

Example: 3
paymentMethodstring

Payment method

Example: EUR/DAI
expirationDatenumber

Timestamp of the offer's expiration date

Example: 123496896
PostEIP712Swap
{
"amount": 10,
"signer": "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
"offerSignature": "0xbb5673fc5d20b4f02a1fa6037a8a3118e01894340e1d8e4831429ac0ce151cb50b30b626834a8b673b5de910f0f06a7e388fda90bb0b4e8dce73e2bd861842ed1c",
"offer": {
"id": 123465,
"from": "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
"tokenAddress": "0x0290FB167208Af455bB137780163b7B7a9a10C16",
"amount": 125,
"price": 3,
"paymentMethod": "EUR/DAI",
"expirationDate": 123496896
}
}