HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetBlock

Query block header information or entire block information according to block height or block hash. (Confirmed state)

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

Returns

FieldTypeDescription
blockIDstringblock hash
block_header.raw_data.timestampint64block timestamp
block_header.raw_data.txTrieRootstringthe root of transaction merkle tree
block_header.raw_data.parentHashstringparent block hash
block_header.raw_data.numberint64block number
block_header.raw_data.witness_idint64super representative id
block_header.raw_data.witness_addressstringsuper representative address
block_header.raw_data.versionint32version
block_header.raw_data.accountStateRootstringthe root of account state tree
block_header.witness_signaturestringthe signature of SR
transactionsTransaction[]Transaction information in the block, please refer to gettransactionbyid for the content contained in each transaction
Body Params
string

id_or_num can be the block height or the block hash. No value entered means to query the latest block.

boolean
Defaults to false

true means query the entire block information include the header and body. false means only query the block header information.

Response

Language
Request
Click Try It! to start a request and see the response here!