Skip to main content

Parameters

chainId
string
default:"starknet"
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:"starknet_getBlockWithTxs"
required
JSON-RPC method name.
params
object
required
Parameters for starknet_getBlockWithTxs: [block_id].Parameters for starknet_getBlockWithTxs:
  • params.block_id: BlockID object containing hash and number.

Returns

result
oneOf
A block object or pending block object containing: