Skip to main content

starknet_getEvents RPC Method

Returns all event objects matching the conditions in the provided filter.

Updated on
Mar 18, 2024

Parameters

fromBlock
string
REQUIRED

The block hash, the block number (height), or a block tag (latest, pre_confirmed, or l1_accepted)

toBlock
string
REQUIRED

The block hash, the block number (height), or a block tag (latest, pre_confirmed, or l1_accepted)

address
string

The contract address

keys
array

The key values used to filter the events

chunk_size
integer
REQUIRED

The chunk size

continuation_token
string

The token returned from the previous query. If no token is provided the first page is returned

Returns

result
object

An object with the following fields

events
array

An event object with following fields

from_address
string

From address

data
array

The data

keys
array

The values used to filter the events

block_hash
string

The hash of the block in which the event was emitted

block_number
integer

The number of the block in which the event was emitted

transaction_hash
string

The transaction hash

continuation_token
string

The token returned from the previous query. If no token is provided the first page is returned

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free