Recharge Task
Endpoint: GET /recharge-task
Description: Retrieves the status of a Refuel based on the transaction hash and chain ID.
Parameters:Name | Type | Required | Description |
---|---|---|---|
txHash | string | true | Transaction hash |
chainId | number | true | Chain ID where the transaction was executed |
curl -X GET "https://api.refuel.exchange/recharge-task?txHash=0x20de3c6296b5f023983ebf95dc72d0c74e1389f37f5420d3e00dd45f675516cb&chainId=1868"
{
"_id": "67863ba7807b0c9824cf1a36",
"srcChainId": 1868,
"destChainId": 8453,
"amountIn": "100000000000000",
"amountOut": "98015461764128",
"sender": "0xdc23c25ba783423e4c9f7728e8c579895dd0d720",
"recipient": "0xdc23c25ba783423e4c9f7728e8c579895dd0d720",
"status": "Completed",
"srcChainTx": {
"chainId": 1868,
"txHash": "0x20de3c6296b5f023983ebf95dc72d0c74e1389f37f5420d3e00dd45f675516cb",
"blockNumber": 1857795,
"blockHash": "0x851c2d23bc66e774b94ac02c5d8db51e2dd3d49431a218b87f2f4c5d48553e61",
"timestamp": 1736850341,
"logIndex": 0
},
"destChainTx": {
"chainId": 8453,
"txHash": "0xb582b426e1f4e3aa0406480ce9545e0cc97c579a502bfaf128791b2fcd7e7fb2",
"blockNumber": 25030499,
"blockHash": "0x33eddd078dd921beb63957472858ec289a216bbd32b0fc588ca0c4d5a73e9a85",
"timestamp": 1736850345,
"logIndex": 0
},
"relayId": "67863ba70c33e452fd0e4953",
"route": "refuel",
"amountInUsd": 0.323239,
"amountOutUsd": 0.3168241984517497,
"__v": 0,
"srcToken": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18,
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"chainId": 1868,
"logoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/tokens/ETH.png",
"chainLogoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/chains/Soneium.png"
},
"destToken": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18,
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"chainId": 8453,
"logoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/tokens/ETH.png",
"chainLogoURI": "https://refuel.sfo3.cdn.digitaloceanspaces.com/chains/Base.png"
}
}