arb_getRawBlockMetadata
Returns the block number and the raw block metadata of each block in the range from fromBlock to toBlock that has metadata. Returns an error if the node does not serve block metadata, if fromBlock is greater than toBlock, or if the range exceeds the configured block limit.
Source: nitro v3.12.2 execution/gethexec/api.go:59
Generated from Nitro v3.12.2.
https://arb1.arbitrum.io/rpcParams
Result
Prop
Type
{ "jsonrpc": "2.0", "id": 1, "result": [ { "blockNumber": 0, "rawMetadata": "0x00" } ]}Go definition
// nitro v3.12.2 execution/gethexec/api.go:59func (a *ArbAPI) GetRawBlockMetadata(ctx context.Context, fromBlock, toBlock rpc.BlockNumber) ([]NumberAndBlockMetadata, error)// nitro v3.12.2 execution/gethexec/api.go:46type NumberAndBlockMetadata struct { BlockNumber uint64 `json:"blockNumber"` RawMetadata hexutil.Bytes `json:"rawMetadata"`}curl -X POST https://arb1.arbitrum.io/rpc \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "arb_getRawBlockMetadata", "params": [ "latest", "latest" ]}'How is this guide?