Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsStarknetJSON-RPC API

starknet_getEvents - Returns all events mat...

Returns all events matching the given filter

Starknet RPC endpoint: endpoint URLs, plans and pricing.

Returns all events matching the given filter

Returns all event objects matching the conditions in the provided filter

JSON-RPC request
{
  "jsonrpc": "2.0",
  "method": "starknet_getEvents",
  "params": [
    {
      "chunk_size": 1,
      "from_block": "latest",
      "to_block": "latest",
      "address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
      "keys": [
        [
          "0x1"
        ]
      ]
    }
  ],
  "id": 1
}

Errors

CodeMessage
31Requested page size is too big
33The supplied continuation token is invalid or unknown
24Block not found
34Too many keys provided in a filter

Examples

starknet_getClassHashAt - Get the contract...

Get the contract class hash in the given block for the contract deployed at the given address

starknet_getMessagesStatus - Given an l1 tx...

Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order

On this page

ErrorsExamples