GetTxData
Endpoint: GET /get-tx-data
Description: Retrieves the necessary data to execute a cross-chain transaction.
Parameters:Name | Type | Required | Description |
---|---|---|---|
srcChainId | number | true | Source chain ID |
destChainId | number | true | Destination chain ID |
amount | string | true | Amount to be transferred (in wei) |
recipientAddress | string | true | Recipient's address on the destination chain |
minAmountOut | string | true | Minimum amount expected on the destination |
self | boolean | true | Indicates if the sender is the recipient |
curl -X GET "https://api.refuel.exchange/get-tx-data?srcChainId=137&destChainId=1868&amount=1953476036815543522&recipientAddress=0x585265e02c5bE4E141cba3194bB9E6cAe7DA0174&minAmountOut=268179126466682&self=true"
{
"success": true,
"result": {
"chainId": 137,
"tx": {
"to": "0xb3583F926668cb693D616BA0d6268105d88cED03",
"value": "1953476036815543522",
"data": "0x000b"
}
}
}