TRX
POST
GET
Last updated on January 1, 1970
3 min read
Method /wallet/gettransactioninfobyid undefined ()
connect with REST protocol
/wallet/gettransactioninfobyid
Query the transaction fee, block height by transaction id
Parameters
value
- string
Transaction hash, i.e. transaction id.
Request
curl --location --request POST 'https://trx.getblock.io/wallet/gettransactioninfobyid' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"value": "0af79242191c6728b79e858a36a4b5c65e4e52b9fcee4dc5af30eac57b6d0953"}'
Response
{
"blockNumber": 30864600,
"blockTimeStamp": 1623056091000,
"contractResult": [
"0000000000000000000000000000000000000000000000000000000000000000"
],
"contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
"id": "0af79242191c6728b79e858a36a4b5c65e4e52b9fcee4dc5af30eac57b6d0953",
"log": [
{
"address": "a614f803b6fd780986a42c78ec9c7f77e6ded13c",
"data": "000000000000000000000000000000000000000000000000000000001fb6e57f",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"000000000000000000000000e4b8075df69297bc24cc4bbaf48cd17206e1f62c",
"0000000000000000000000000d0707963952f2fba59dd06f2b425ace40b492fe"
]
}
],
"receipt": {
"energy_usage": 10727,
"energy_usage_total": 14631,
"net_usage": 338,
"origin_energy_usage": 3904,
"result": "SUCCESS"
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }