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

5 min read

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

/wallet/getnowblock

info-circle-fill

Query the latest block information

Parameters

-

Request

curl --location --request POST 'https://trx.getblock.io/wallet/getnowblock' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' 

Response

{
    "blockID": "0000000002dbe0e890dddd5df8bb75251f386daee6e5b7a6cf777d493e5d894c",
    "block_header": {
        "raw_data": {
            "number": 47964392,
            "parentHash": "0000000002dbe0e7cfc367b39b54d4a53beda9b70a493a724561cad264f38e37",
            "timestamp": 1674492219000,
            "txTrieRoot": "3b9e119fe6a0807baa98fdb1e20e5100772e3173eb14f7be424a5e66ac99503a",
            "version": 26,
            "witness_address": "417f5e5aca5332ce5e18414d7f85bb62097cefa453"
        },
        "witness_signature": "1a12774cf941968707f2bff2f39352953211630399223631f5a7f3ca5dfd6bd126e9ff83a60a1d2e906229d492ee967f1359fb18bc58a291deedbda9e2ff7f7801"
    },
    "transactions": [
        {
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "type_url": "type.googleapis.com/protocol.TransferContract",
                            "value": {
                                "amount": 1,
                                "owner_address": "41a7b6965481021cc80e0d78a921b60a7b45fdbeb5",
                                "to_address": "4162d0adca402b12e898b8d3a2debc77ce41c8ecc4"
                            }
                        },
                        "type": "TransferContract"
                    }
                ],
                "expiration": 1674492273000,
                "ref_block_bytes": "e0d4",
                "ref_block_hash": "1394b476dff14ddd",
                "timestamp": 1674492216461
            },
            "raw_data_hex": "0a02e0d422081394b476dff14ddd40e8c291fcdd305a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a1541a7b6965481021cc80e0d78a921b60a7b45fdbeb512154162d0adca402b12e898b8d3a2debc77ce41c8ecc41801708d898efcdd30",
            "ret": [
                {
                    "contractRet": "SUCCESS"
                }
            ],
            "signature": [
                "ccedee74d57ec4409d0e1b77f329716843790df0a1a2281c244c6d5e0d2e6fb7085b451da3d4cba1436c81825c9a6ef79fc5c846d428090203a484c5319fd0a400"
            ],
            "txID": "30232b8c605f7a3651390ac5fd69d2f8d244791624e9f03d190f5d6cb465bb5e"
        }
    ]
}
banner icon

Start Building with GetBlock RPCs for Free