Parameters
string
default:"bitcoin-testnet"
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:"getblock"
required
JSON-RPC method name.
object
required
Parameters: [blockHash, verbosity?].Positional parameters for
getblock:params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.params[1]: Verbosity level (0-3) controlling JSON detail.
Returns
object
Block data or raw hex depending on verbosity.