The blocklog
Contract
The blocklog
contract is one of the core contracts on each IOTA Smart Contracts chain.
The blocklog
contract keeps track of the blocks of requests processed by the chain, providing views to get request
status, receipts, block, and event details.
To avoid having a monotonically increasing state size, only the latest N
blocks (and their events and receipts) are stored. This parameter can be configured
when deploying the chain.
Views
getBlockInfo
Returns information about the block with index blockIndex
.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
blockIndex | u32 | Yes | The block index. Default: the latest block |
Returns
Name | Type | Description |
---|---|---|
blockIndex | u32 | The block Index |
blockInfo | *BlockInfo | The information about the block |
getRequestIDsForBlock
Returns a list with all request IDs in the block with block index n
.