GET
/
v1
/
{chainName}
/
events
/
address
/
{contractAddress}
import { GoldRushClient } from "@covalenthq/client-sdk";

const ApiServices = async () => {
    const client = new GoldRushClient("YOUR_API_KEY");
    const resp = await client.BaseService.getLogEventsByAddress({chainName: "chainName", walletAddress: "walletAddress"});
    console.log(resp.data);
};

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "chain_id": 123,
  "chain_name": "<string>",
  "items": [
    {
      "block_signed_at": "2023-11-07T05:31:56Z",
      "block_height": 123,
      "tx_offset": 123,
      "log_offset": 123,
      "tx_hash": "<string>",
      "raw_log_topics": [
        "<string>"
      ],
      "sender_contract_decimals": 123,
      "sender_name": "<string>",
      "sender_contract_ticker_symbol": "<string>",
      "sender_address": "<string>",
      "sender_address_label": "<string>",
      "sender_logo_url": "<string>",
      "supports_erc": [
        "<string>"
      ],
      "sender_factory_address": "<string>",
      "raw_log_data": "<string>",
      "decoded": {
        "name": "<string>",
        "signature": "<string>",
        "params": [
          {
            "name": "<string>",
            "type": "<string>",
            "indexed": true,
            "decoded": true,
            "value": "<string>"
          }
        ]
      }
    }
  ],
  "pagination": {
    "has_more": true,
    "page_number": 123,
    "page_size": 123,
    "total_count": 123
  }
}
Credit Cost: 0.01 per item.
Processing: Realtime

Path Parameters

chainName
string
required

The chain name eg: eth-mainnet.

contractAddress
string
required

The requested contract address. Passing in an ENS, RNS, Lens Handle, or an Unstoppable Domain resolves automatically.

Query Parameters

starting-block
integer

The first block to retrieve log events with. Accepts decimals, hexadecimals, or the strings earliest and latest.

ending-block
string

The last block to retrieve log events with. Accepts decimals, hexadecimals, or the strings earliest and latest.

page-size
integer

Number of items per page. Omitting this parameter defaults to 100.

page-number
integer

0-indexed page number to begin pagination.

Response

200 - application/json
Successful response
updated_at
string

The timestamp when the response was generated. Useful to show data staleness to users.

chain_id
integer

The requested chain ID eg: 1.

chain_name
string

The requested chain name eg: eth-mainnet.

items
object[]

List of response items.

pagination
object

Pagination metadata.