post https://api.valha.xyz/v0//tokens/swap
BETA FEATURE - Please contact team to be whitelisted.
Create transaction objects to interact with an EVM blockchain for a specified user.
Log in to see full request history
Responses
400
400BETA FEATURE - Please contact team to be whitelisted.
Create transaction objects to interact with an EVM blockchain for a specified user.
400xxxxxxxxxx
15curl --request POST \
--url https://api.valha.xyz/v0/optimism/tokens/swap \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"user": "0x45E954acf1Efc374478dF69B45f12AEFD8AE51a3",
"from_token": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
"to_token": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
"amount": 20,
"protocol": "1inch/v5",
"disable_check": true,
"maximum_approval": false
}
'
Try It!
to start a request and see the response here! Or choose an example: