Parameters
chainId
string
default:"starknet-sepolia"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"starknet_getEvents"
required
JSON-RPC method name.
Paramters for method starknet_getEvents: [filter].Parameters for starknet_getEvents:params.filter: Filter conditions used to return event objects.
Returns
Response object containing events matching the provided filter.
Token to fetch the next page of results if more results exist.
Array of event objects matching the filter.
Event object.
Contract address that emitted the event.
Hash of the block where the event was emitted.
Block number where the event was emitted.
Hash of the transaction that emitted the event.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getEvents",
"params": {
"filter": {
"from_block": "latest",
"to_block": "latest",
"address": "0x04c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05",
"chunk_size": 10
}
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"continuation_token": "637544-10",
"events": [
{
"block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600",
"block_number": 637544,
"data": [
"..."
],
"from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05",
"keys": [
"..."
],
"transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af"
},
{
"block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600",
"block_number": 637544,
"data": [
"..."
],
"from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05",
"keys": [
"..."
],
"transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af"
},
{
"block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600",
"block_number": 637544,
"data": [
"..."
],
"from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05",
"keys": [
"..."
],
"transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af"
}
]
}
}