Skip to content

Get Transaction Details

FSCO lets you retrieve transaction details in two ways: using a queryId returned from a chain execution, or using a native txHash and chainId. Both methods return full metadata including status, gas usage, logs, and return data.

Before you begin, ensure you have:

  • Either a queryId from a previous /execute request
  • Or a blockchain txHash and corresponding chainId
GET /v2/chain/tx/{txId}
get-by-id.sh
curl -X GET https://api.fsco.io/v2/chain/tx/12345678-1234-1234-1234-123456789012 \
-H "Authorization: Bearer $FSCO_API_KEY"
GET /v2/chain/chain/{chainId}/tx/{txHash}
get-by-hash.sh
curl -X GET https://api.fsco.io/v2/chain/{chainId}/tx/0xtxhash123... \
-H "Authorization: Bearer $FSCO_API_KEY"
response.json
{
"txData": "0xabcdef...",
"chainId": 137,
"to": "0xReceiver...",
"from": "0xSender...",
"contractAddress": null,
"hash": "0xtxhash123...",
"index": 2,
"blockHash": "0xblockhash...",
"blockNumber": 12345678,
"gasUsed": "21000",
"gasPrice": "1000000000",
"logs": [],
"type": 2,
"status": 1,
"returnData": "0x"
}