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

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

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "address": "<string>",
  "chain_id": 123,
  "chain_name": "<string>",
  "items": [
    {
      "total_count": 123,
      "earliest_transaction": {
        "block_signed_at": "2023-11-07T05:31:56Z",
        "tx_hash": "<string>",
        "tx_detail_link": "<string>"
      },
      "latest_transaction": {},
      "gas_summary": {
        "total_sent_count": 123,
        "total_fees_paid": "<string>",
        "total_gas_quote": 123,
        "pretty_total_gas_quote": "<string>",
        "average_gas_quote_per_tx": 123,
        "pretty_average_gas_quote_per_tx": "<string>",
        "gas_metadata": {
          "contract_decimals": 123,
          "contract_name": "<string>",
          "contract_ticker_symbol": "<string>",
          "contract_address": "<string>",
          "supports_erc": [
            "<string>"
          ],
          "logo_url": "<string>"
        }
      }
    }
  ]
}
Credit Cost: 1 per call.
Processing: Batch

Path Parameters

chainName
string
required

The chain name eg: eth-mainnet.

walletAddress
string
required

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

Query Parameters

quote-currency
string

The currency to convert. Supports USD, CAD, EUR, SGD, INR, JPY, VND, CNY, KRW, RUB, TRY, NGN, ARS, AUD, CHF, and GBP.

with-gas
boolean

Include gas summary details. Additional charge of 1 credit when true. Response times may be impacted for wallets with millions of transactions.

Response

200 - application/json
Successful response
updated_at
string

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

address
string

The requested address.

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.