For the complete documentation index, see llms.txt. This page is also available as Markdown.

Wallet History

Get Wallet History

GET https://api.wallettwo.com/blockchain/v1/api/wallet/history


### Authentication

This endpoint is authenticated with an API key. Pass it in the `x-api-key` header.

x-api-key: <YOUR_API_KEY>


If the header is missing or the key fails verification against the WalletTwo auth service, the request is rejected.

### Query parameters

| Name      | Type             | Required | Description                                                                            |
| --------- | ---------------- | -------- | -------------------------------------------------------------------------------------- |
| `address` | string           | Yes      | Wallet address whose history is requested.                                             |
| `chainId` | string \| number | Yes      | Decimal chain ID of the network. Must match a network registered in the database.      |
| `cursor`  | string           | No       | Pagination cursor returned by a previous response. Omit for the first page.            |
| `order`   | string           | No       | Sort order. `DESC` (default) returns newest first; `ASC` returns oldest first.         |
| `limit`   | integer          | No       | Maximum number of records to return. Defaults to `100`.                                |

### Example requests

First page:

curl -X GET "https://api.wallettwo.com/blockchain/v1/api/wallet/history?address=0xabc...&chainId=1" -H "x-api-key: $WALLETTWO_API_KEY"

curl -X GET "https://api.wallettwo.com/blockchain/v1/api/wallet/history?address=0xabc...&chainId=1&cursor=eyJhbGci...&limit=50" -H "x-api-key: $WALLETTWO_API_KEY"

curl -X GET "https://api.wallettwo.com/blockchain/v1/api/wallet/history?address=0xabc...&chainId=137&order=ASC&limit=25" -H "x-api-key: $WALLETTWO_API_KEY"

Example response

The exact item shape is produced by wallets/{address}/history endpoint. Fields such as native_transfers, erc20_transfers, and nft_transfers are populated when the transaction includes the corresponding asset movements.

Pagination

Use the cursor value from a response to request the next page. When the response returns no cursor (or an empty one), there are no more results.

Errors

Status
Reason

400

Address is required — missing address query param.

400

Network ID is required — missing chainId query param.

400

Network with chainId <id> not foundchainId is not registered.

401

x-api-key header missing.

401

Invalid API key. — key failed upstream verification.

502

Failed to fetch wallet history. — upstream call failed.

Notes

  • Responses are not cached at the API layer; rate limits and freshness follow the upstream provider.

  • The endpoint resolves the network by chainId and converts it to the hex chain identifier — callers always pass the decimal chainId.

Last updated