Contracts

Contract Events

Query and listen to contract events for any deployed contract on any EVM chain.

Get Contract Events

You can fetch contract events using the contract events API.

GET /v1/contracts/{address}/events?chainId=<chain_id>&decode=true
Host: api.thirdweb.com
x-secret-key: <project-secret-key>

Authentication requires either x-secret-key (backend) or x-client-id (frontend) to be set in the request headers.

Parameters

  • address - The contract address
  • chainId - The chain ID where the contract is deployed
  • decode - Whether to decode the event data (optional, defaults to false)

Response

The API returns a list of events that have been emitted by the specified contract, including event details and decoded function calls when decode=true is specified.