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:"getBlocks"
required
JSON-RPC method name.
object
required
Parameters for method getBlocks: [startSlot, endSlot, config]Positional parameters for
getBlocks:params[0]: Starting slot number for the range.params[1]: Ending slot number for the range.params[2]: Optional configuration object.
Returns
array
Returns a list of confirmed blocks with a limit