/walletsolidity/gettransactioninfobyid - Tron
Example code for the gettransactioninfobyid Solidity API method. Complete guide on how to use gettransactioninfobyid Solidity API method in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioninfobyid' \
--header 'Content-Type: application/json' \
--data-raw '{
"value": "d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62"
}'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioninfobyid',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"value": "d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62"})
}
);
console.log(await response.json());import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/walletsolidity/gettransactioninfobyid',
headers={'Content-Type': 'application/json'},
json={"value": "d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62"}
)
print(response.json())Response
{
"id": "d5ec749ecc2a615399d8a6c864ea4c74ff9f523c2be0e341ac9be5d47d7c2d62",
"blockNumber": 68000000,
"blockTimeStamp": 1719400000000,
"receipt": {
"energy_usage_total": 65000,
"net_usage": 345,
"result": "SUCCESS"
},
"fee": 27000,
"contractResult": [
"..."
],
"log": [
{
"address": "a614f803b6fd780986a42c78ec9c7f77e6ded13c",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
],
"data": "00000000000000000000000000000000000000000000000000000000000f4240"
}
]
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Previous/walletsolidity/gettransactioninfobyblocknum - TronNext/walletsolidity/triggerconstantcontract - Tron
Was this helpful?