New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
trx

TRX

POST

GET

attention-sign-fill/wallet/accountpermissionupdateattention-sign-fill/wallet/broadcasthexattention-sign-fill/wallet/clearabiattention-sign-fill/wallet/createaccountattention-sign-fill/wallet/createaddressattention-sign-fill/wallet/createassetissueattention-sign-fill/wallet/createshieldedcontractparametersattention-sign-fill/wallet/createspendauthsigattention-sign-fill/wallet/createwitnessattention-sign-fill/wallet/deploycontractattention-sign-fill/wallet/easytransferattention-sign-fill/wallet/easytransferassetattention-sign-fill/wallet/easytransferassetbyprivateattention-sign-fill/wallet/easytransferbyprivateattention-sign-fill/wallet/exchangecreateattention-sign-fill/wallet/exchangeinjectattention-sign-fill/wallet/exchangetransactionattention-sign-fill/wallet/exchangewithdrawattention-sign-fill/wallet/freezebalanceattention-sign-fill/wallet/generateaddressattention-sign-fill/wallet/getaccountattention-sign-fill/wallet/getaccountbalanceattention-sign-fill/wallet/getaccountnetattention-sign-fill/wallet/getaccountresourceattention-sign-fill/wallet/getakfromaskattention-sign-fill/wallet/getassetissuebyaccountattention-sign-fill/wallet/getassetissuebyidattention-sign-fill/wallet/getassetissuelistattention-sign-fill/wallet/getblockbalanceattention-sign-fill/wallet/getBrokerageattention-sign-fill/wallet/getcontractattention-sign-fill/wallet/getcontractinfoattention-sign-fill/wallet/getdelegatedresourceattention-sign-fill/wallet/getdelegatedresourceaccountindexattention-sign-fill/wallet/getdiversifierattention-sign-fill/wallet/getexchangebyidattention-sign-fill/wallet/getexpandedspendingkeyattention-sign-fill/wallet/getincomingviewingkeyattention-sign-fill/wallet/getnewshieldedaddressattention-sign-fill/wallet/getnkfromnskattention-sign-fill/wallet/getnodeinfoattention-sign-fill/wallet/getpaginatedassetissuelistattention-sign-fill/wallet/getRewardattention-sign-fill/wallet/getspendingkeyattention-sign-fill/wallet/gettransactionsignattention-sign-fill/wallet/gettriggerinputforshieldedtrc20contractattention-sign-fill/wallet/getzenpaymentaddressattention-sign-fill/wallet/isshieldedtrc20contractnotespentattention-sign-fill/wallet/listwitnessesattention-sign-fill/wallet/participateassetissueattention-sign-fill/wallet/proposalapproveattention-sign-fill/wallet/proposalcreateattention-sign-fill/wallet/proposaldeleteattention-sign-fill/wallet/scanshieldedtrc20notesbyattention-sign-fill/wallet/scanshieldedtrc20notesbyovkattention-sign-fill/wallet/transferassetattention-sign-fill/wallet/triggerconstantcontractattention-sign-fill/wallet/triggersmartcontractattention-sign-fill/wallet/unfreezeassetattention-sign-fill/wallet/unfreezebalanceattention-sign-fill/wallet/updateaccountattention-sign-fill/wallet/updateassetattention-sign-fill/wallet/updateBrokerageattention-sign-fill/wallet/updateenergylimitattention-sign-fill/wallet/updatesettingattention-sign-fill/wallet/updatewitnessattention-sign-fill/wallet/votewitnessaccountattention-sign-fill/wallet/withdrawbalanceattention-sign-fill/walletsolidity/getaccountattention-sign-fill/walletsolidity/getblockbylatestnumattention-sign-fill/walletsolidity/getblockbynumattention-sign-fill/walletsolidity/getnowblockattention-sign-fill/walletsolidity/gettransactionbyid
chevron-right

Last updated on January 1, 1970

3 min read

Method /wallet/gettransactioninfobyid undefined ()
connect with REST protocol

/wallet/gettransactioninfobyid

info-circle-fill

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"
        }
}
banner icon

Start Building with GetBlock RPCs for Free