Deprecated
Execute Call
Pay for an action on one chain and perform one or more transactions on another chain.
POST
/
execute
/
call
curl --request POST \
--url https://api.relay.link/execute/call \
--header 'Content-Type: application/json' \
--data '{
"user": "<string>",
"originChainId": 123,
"destinationChainId": 123,
"txs": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"appFees": [
"<string>"
],
"refundTo": "<string>",
"refundOnOrigin": true,
"source": "<string>",
"useForwarder": true
}'
{
"steps": [
{
"id": "deposit",
"action": "Confirm transaction in your wallet",
"description": "Deposit funds for executing the calls",
"kind": "transaction",
"items": [
{
"status": "incomplete",
"data": {
"from": "0x03508bB71268BBA25ECaCC8F620e01866650532c",
"to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",
"data": "0x58109c",
"value": "995010715204139091",
"maxFeePerGas": "18044119466",
"maxPriorityFeePerGas": "2060264926",
"chainId": 1,
"gas": 21064
},
"check": {
"endpoint": "/intents/status?requestId=0x341b28c6467bfbffb72ad78ec5ddf1f77b8f9c79be134223e3248a7d4fcd43b6",
"method": "GET"
}
}
]
}
],
"fees": {
"gas": "384398515652800",
"gasCurrency": "eth",
"relayer": "-4989478842712964",
"relayerGas": "521157287036",
"relayerService": "-4990000000000000",
"relayerCurrency": "eth"
},
"breakdown": {
"value": "1000000000000000000",
"timeEstimate": 10
},
"balances": {
"userBalance": "54764083517303347",
"requiredToSolve": "995010521157287036"
}
}
This API has been replaced by the Get Quote API, which supports bridging, swapping and calling through a single unified API.
Body
application/json
Response
200
application/json
Default Response
The response is of type object
.
curl --request POST \
--url https://api.relay.link/execute/call \
--header 'Content-Type: application/json' \
--data '{
"user": "<string>",
"originChainId": 123,
"destinationChainId": 123,
"txs": [
{
"to": "<string>",
"value": "<string>",
"data": "<string>"
}
],
"appFees": [
"<string>"
],
"refundTo": "<string>",
"refundOnOrigin": true,
"source": "<string>",
"useForwarder": true
}'
{
"steps": [
{
"id": "deposit",
"action": "Confirm transaction in your wallet",
"description": "Deposit funds for executing the calls",
"kind": "transaction",
"items": [
{
"status": "incomplete",
"data": {
"from": "0x03508bB71268BBA25ECaCC8F620e01866650532c",
"to": "0xf70da97812cb96acdf810712aa562db8dfa3dbef",
"data": "0x58109c",
"value": "995010715204139091",
"maxFeePerGas": "18044119466",
"maxPriorityFeePerGas": "2060264926",
"chainId": 1,
"gas": 21064
},
"check": {
"endpoint": "/intents/status?requestId=0x341b28c6467bfbffb72ad78ec5ddf1f77b8f9c79be134223e3248a7d4fcd43b6",
"method": "GET"
}
}
]
}
],
"fees": {
"gas": "384398515652800",
"gasCurrency": "eth",
"relayer": "-4989478842712964",
"relayerGas": "521157287036",
"relayerService": "-4990000000000000",
"relayerCurrency": "eth"
},
"breakdown": {
"value": "1000000000000000000",
"timeEstimate": 10
},
"balances": {
"userBalance": "54764083517303347",
"requiredToSolve": "995010521157287036"
}
}
Assistant
Responses are generated using AI and may contain mistakes.