Parameters
string
default:"solana-devnet"
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 for method getBlock: [slot, config]Positional parameters for
getBlock:params[0]: Slot number of the block to retrieve.params[1]: Optional configuration object for getBlock: [commitment, encoding, transactionDetails, maxSupportedTransactionVersion, rewards].
Returns
object
Block information including identity and transaction details but if block is not confirmed returns null.