---
title: "List transactions sent or received by a wallet"
method: POST
path: "/?ankr_getTransactionsByAddress"
tags: ["Query API"]
---

# List transactions sent or received by a wallet

`POST /?ankr_getTransactionsByAddress`

## Request

- Base URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe`
- URL: `https://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe/?ankr_getTransactionsByAddress`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ankr/apis/ankr-advanced-api/docs/%3Fankr_getTransactionsByAddress/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns transactions in which the specified wallet appears as sender or recipient — with full transaction objects including gas, value, and (optionally) nested logs.

Pass a single `address` (one address per request). Scope by `blockchain`, block range (`fromBlock` / `toBlock`), or wall-clock range (`fromTimestamp` / `toTimestamp`). Enable `includeLogs: true` to embed each transaction's log array. Paginate with `pageSize` (default `100`, max `10000`) and `pageToken`.

Part of the **Query API** product (700 compute units per call, $0.00007 at base rate).

## Request body

- object
  - `id` integer, required: Client-supplied request ID echoed in the response.
  - `jsonrpc` '2.0', required
  - `method` 'ankr_getTransactionsByAddress', required
  - `params` object, required
    - `address` string, required: Wallet address to query. One address per request.
    - `blockchain` string[]: Chains to query. Omit or pass an empty array to query all supported chains.
    - `fromBlock` union: Start block (integer, hex, or `earliest`).
      - integer
      - string
    - `toBlock` union: End block (integer, hex, or `latest`).
      - integer
      - string
    - `fromTimestamp` integer: UNIX timestamp lower bound.
    - `toTimestamp` integer: UNIX timestamp upper bound.
    - `descOrder` boolean: Sort newest first when `true`.
    - `includeLogs` boolean: Embed each transaction's log array.
    - `pageSize` integer: Entries per page. Default `100`, max `10000`.
    - `pageToken` string: Opaque page token from a prior response's `nextPageToken`.

## Response `200`

Success. JSON-RPC `result` envelope contains the `transactions` array and pagination cursor. JSON-RPC errors are returned with HTTP 200; check the response body for an `error` key.

- object
  - `id` integer, required
  - `jsonrpc` '2.0', required
  - `result` object, required
    - `nextPageToken` string
    - `transactions` object[], nullable: Transactions matching the query.
      - `blockchain` string, required
      - `blockHash` string, required
      - `blockNumber` string, required
      - `contractAddress` string, nullable
      - `cumulativeGasUsed` string
      - `from` string, required
      - `gas` string
      - `gasPrice` string
      - `gasUsed` string
      - `hash` string
      - `input` string
      - `nonce` string
      - `r` string
      - `s` string
      - `status` string, required: `0x1` success / `0x0` failure.
      - `timestamp` string, required: Hex-encoded UNIX timestamp.
      - `to` string, nullable, required
      - `transactionIndex` string, required
      - `type` string
      - `v` string
      - `value` string, required
      - `logs` object[], nullable: Logs emitted by this transaction (when `includeLogs: true`).

## Other responses

- `400`: Bad Request — malformed JSON-RPC envelope or invalid `params`. The gateway rejects before the JSON-RPC layer processes the call.
- `401`: Unauthorized — missing or invalid API key in the server URL path. Verify that `{API_KEY}` is set to a valid project key.
- `429`: Too Many Requests — the API key has exceeded its rate or quota limits. Back off and retry; consider upgrading the Premium tier for higher limits.
- `500`: Server error — unexpected condition. Retry with exponential backoff; if it persists, file a ticket at https://www.ankr.com/support/.

---

[API](https://skmtc.dev/ankr/apis/ankr-advanced-api.md) - [All operations](https://skmtc.dev/ankr/apis/ankr-advanced-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ankr/apis/ankr-advanced-api/revisions/77e494aeec1b?raw)
