Skip to main content

Parameters

chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getBlocks"
required
JSON-RPC method name.
params
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

result
array
Returns a list of confirmed blocks with a limit