CDP API v1
cURL
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 }
Retrieve events for a specific contract.
Show child attributes
Was this page helpful?