HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetBlock

Query block header information or entire block information according to block height or block hash

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_idint64witness id
block_header.raw_data.witness_addressstringwitness 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
Language
Click Try It! to start a request and see the response here!