Skip to main content
GET
/
v1
/
networks
/
{network_id}
/
smart_contracts
/
{contract_address}
/
events
List smart contract events
curl --request GET \
  --url https://api.cdp.coinbase.com/platform/v1/networks/{network_id}/smart_contracts/{contract_address}/events \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "network_name": "base-mainnet",
      "protocol_name": "uniswap",
      "contract_name": "Pool",
      "event_name": "Transfer",
      "sig": "Transfer(address,address,uint256)",
      "fourBytes": "0xddf252ad",
      "contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "block_time": "2023-04-01T12:00:00Z",
      "block_height": 201782330,
      "tx_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "tx_index": 109,
      "event_index": 362,
      "data": "{\"from\":\"0x1234...\",\"to\":\"0x5678...\",\"value\":\"1000000000000000000\"}"
    }
  ],
  "next_page": "eyJsYXN0X2V2ZW50X2lkIjoiMTIzNDU2Nzg5MCJ9",
  "has_more": true
}

Authorizations

Authorization
string
header
required

Path Parameters

network_id
string
required
contract_address
string
required

Query Parameters

protocol_name
string
required
contract_name
string
required
event_name
string
required
from_block_height
integer
required
to_block_height
integer
required
next_page
string

Response

data
object[]
required
next_page
string
required
Example:
has_more
boolean
required
Example: