Otterscan
ots_getBlockDetailsByHash
Given a block hash, return its data. Similar to the standard eth_getBlockByNumber/Hash method, but optimized.
POST
Parameters
string
default:"1"
required
Unique identifier for a blockchain network.
number
default:1
required
Request identifier used to match responses.
string
default:"2.0"
required
JSON-RPC version.
string
default:"ots_getBlockDetailsByHash"
required
JSON-RPC method name.
object
default:["0x1"]
required
The parameters for ots_getBlockDetailsByHash: [blockHash].Positional parameters for
ots_getBlockDetailsByHash:params[]: 32 Bytes - hash of the block where this transaction was included. Null when pending.
Returns
object
Modified block object with additional fields and stripped transaction list.