Skip to Content
Blockhash Docs
API referenceWallets
GET
/v1/wallets/{address}/swaps

The wallet's priced trades, newest first, a row a transaction, sent by it or not; token keeps one token's. A short or empty page may still name nextBefore: pass it as before until it is null. Each key, session or (with neither) client address has one page a second, a burst of 20.

Path Parameters

address*string

A 20-byte hex address.

Match^0x[0-9a-fA-F]{40}$

Query Parameters

limit?integer

The most trades the page carries. A value out of range reads as its nearest bound.

Range1 <= value <= 100
Default50
before?string

A page's nextBefore, as this route wrote it. The page holds the trades older than that page, and no transaction is split between two pages. Omit it for the newest page.

Match^[A-Za-z0-9_-]{1,256}$
token?string

The trades in which this token was either side, bought, sold or paid with. Native ether (the zero address) is bad-token.

Match^0x[0-9a-fA-F]{40}$

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/wallets/string/swaps"
{  "address": "string",  "swaps": [    {      "id": "string",      "txHash": "string",      "logIndex": 0,      "blockNumber": "string",      "timestamp": 0,      "token": "string",      "tokenSymbol": "string",      "cash": "string",      "cashSymbol": "string",      "pool": "string",      "venue": "string",      "side": "buy",      "amountToken": 0,      "amountCash": 0,      "priceUsd": 0,      "volumeUsd": 0,      "trader": "string",      "purpose": "liquidity-add",      "moved": [        {          "token": "string",          "symbol": "string",          "amount": 0,          "usd": 0        }      ]    }  ],  "source": "indexer",  "nextBefore": "string"}