Skip to main content

16 min read

Overview​

Wallets, portfolio trackers, and tax tools all need the same screen: a list of everything that moved in and out of an address. On EVM networks, that list is harder to build than it looks. A plain ETH payment lives in the transaction itself. Token and NFT transfers live in event logs. ETH that a smart contract forwards during a call only shows up in execution traces. Collecting all three for one address means scanning blocks, decoding logs, and tracing calls, or running an indexer that does that work for you.

Quicknode Explorer API is that indexer. Its qn_getAssetTransfers method takes one or more wallet addresses and returns every asset movement that touched them, newest first, with the transaction and block behind each one. Explorer API runs on several EVM networks, such as Ethereum, BNB Smart Chain, Arc, Robinhood, and Elysium. This guide uses Ethereum mainnet for its examples, and the method works the same way on every supported chain.

You'll build the data layer of a wallet activity feed. First you'll request a wallet's latest transfers and learn to read each record. Then you'll shape the feed with filters, and finish with a TypeScript script that pages through the full history and saves it to a file.

TLDR
  • Explorer API returns an EVM wallet's native, internal, token, and NFT transfers from one method, qn_getAssetTransfers, newest first.
  • Each transfer comes with its sender, recipient, exact amount, transaction, and block, so you can render a feed row without extra lookups.
  • Server-side filters narrow the history by direction, transfer type, and block range, and can hide zero-value spam transfers.
  • The guide ends with a TypeScript script that pages through a wallet's history and saves every transfer to a file.

What You Will Need​

  • A Quicknode account on a paid plan, which Explorer API requires. The examples use an Ethereum mainnet endpoint. See Quicknode pricing for plan details.
  • curl for the first requests.
  • Node.js 24 or later, which runs TypeScript files without extra packages.
  • A wallet address to look up. The examples use the public address of vitalik.eth, because it has years of varied activity to explore.

Everything in this guide reads public data, so you won't need a private key or any funds.

What Does an EVM Wallet's Transfer History Include?​

A wallet's transfer history is the list of asset movements that touched its address: native coin payments, native value forwarded by smart contracts (internal transfers), ERC-20 token transfers, and ERC-721 or ERC-1155 NFT transfers. It is not a list of transactions, even though many apps label this screen "transaction history". Calls that move no assets, such as token approvals, do not appear in it.

That distinction shapes how you store and display the data, so it's worth understanding before you send the first request.

Native, Internal, Token, and NFT Transfers​

Every record from qn_getAssetTransfers has a type field that tells you which kind of movement it describes, and which fields matter for it:

Transfer typeWhat movedFields to use
nativeThe native coin sent by the transaction itself, such as ETH on Ethereum or HYPE on Elysiumamount.raw, from, to
internalNative value moved by a smart contract during the transactionamount.raw, position.traceAddress
fungibleAn ERC-20 token transferasset.address, asset.standard, amount.raw
non-fungibleAn ERC-721 or ERC-1155 NFT transferasset.address, asset.standard, asset.tokenId, amount.raw

Internal transfers are easy to miss if you only read transactions and event logs. When a contract sends you ETH during a call, for example as part of a withdrawal, no separate transaction carries that payment. It only exists inside the execution of your call, and Explorer API reports it as an internal record.

One Transaction, Several Transfer Records​

A single transaction often moves more than one asset. A token swap sends one token out and brings another one in, and a marketplace sale can move an NFT one way and ETH the other. Explorer API returns one record for each of those movements, and all of them share the same transaction hash.

That's why each record has its own transferId. Use it as the key when you store transfers, instead of the transaction hash, so a swap shows up as two rows in your feed rather than overwriting itself.

Get Wallet Transfer History with Explorer API​

With the data model in mind, you're ready to send a real request. First, store your endpoint details and the wallet address in your terminal, so every request in the rest of the guide can read them.

The endpoint page in the Quicknode dashboard shows the base URL and the auth token as separate values. Set the base URL as QUICKNODE_ENDPOINT, then paste the token when the terminal prompts for it. The prompt hides the token, so it stays off your screen and out of your shell history:

export QUICKNODE_ENDPOINT="https://<endpoint-name>.ethereum-mainnet.quiknode.pro/"
printf 'Quicknode auth token: '
read -rs QUICKNODE_TOKEN
printf '\n'
export QUICKNODE_TOKEN
export WALLET_ADDRESS=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

WALLET_ADDRESS holds the public address of vitalik.eth. Replace it with any address you want to look up, and keep this terminal open for the rest of the guide.

Endpoint authentication

We recommend sending the Auth token in the x-token header for HTTPS requests. This reduces the risk of exposing credentials through URL logging and monitoring systems.

Quicknode supports both header and URL-path authentication. Open How to authenticate on your endpoint overview to see the HTTPS examples. See endpoint security for other ways to protect your endpoint.

Request a Wallet's Latest Transfers​

Your first request asks for the 10 most recent transfers of the wallet, in both directions:

curl "$QUICKNODE_ENDPOINT" \
-H 'Content-Type: application/json' \
-H "x-token: $QUICKNODE_TOKEN" \
-d @- <<EOF
{
"jsonrpc": "2.0",
"id": 1,
"method": "qn_getAssetTransfers",
"params": {
"accounts": ["$WALLET_ADDRESS"],
"direction": "any",
"limit": 10
}
}
EOF

The method takes a single params object. accounts lists the wallets to look up, direction: "any" includes transfers into and out of them, and limit sets the page size. The default page size is 100 and the maximum is 1,000. This request asks for 10 to keep the output short.

Here is a response from that request, trimmed to a single transfer record and a shortened cursor:

{
"id": 1,
"jsonrpc": "2.0",
"result": {
"data": [
{
"network": "ethereum-mainnet",
"transferId": "eip155:1/tx:0x511fc92d616685d96a637012c9374bd0e57b8dfbccf74f171fe8370838d34921/log:360",
"type": "fungible",
"direction": "in",
"from": "0x984573e30a7db8575ba4d71c4af59d22933e173d",
"to": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"asset": {
"id": "eip155:1/erc20:0x8c106eedad96553e64287a5a6839c3cc78afa3d0",
"address": "0x8c106eedad96553e64287a5a6839c3cc78afa3d0",
"standard": "erc20",
"type": "fungible",
"symbol": "gtUSDCp",
"name": "Gauntlet USDC Prime",
"decimals": 18,
"isGasToken": false
},
"amount": {
"raw": "71700000000000000",
"value": "0.0717",
"decimals": 18
},
"tx": {
"hash": "0x511fc92d616685d96a637012c9374bd0e57b8dfbccf74f171fe8370838d34921"
},
"block": {
"height": 26350957,
"hash": "0x06ee9e3760d1d992d693eda80a3d4df0366c903510a48551aae77d37dca54494",
"timestamp": "2026-11-05T20:14:59Z"
},
"position": {
"logIndex": 360
}
}
],
"page": {
"cursor": "eyJ2ZXJzaW9uIjoxLCJxdWVy..."
}
}
}

result.data holds the transfer records, newest first, and result.page.cursor is the value you'll use later to fetch older transfers. Your response will show different transfers, because the wallet's history keeps growing. If the request returns HTTP 401, the token is missing or wrong, so check that QUICKNODE_TOKEN is set in this terminal.

Read a Transfer Record​

Each record carries everything a feed row needs: what moved, which way, between whom, and when. The record in the sample response reads as "received 0.0717 Gauntlet USDC Prime." Here is where each part of that sentence comes from:

  • What moved: asset names the asset, and amount gives the quantity. amount.raw is the exact integer in the asset's smallest unit, and amount.value is the same quantity as a readable decimal. Both are strings, so large values keep their precision.
  • Which way: direction is relative to the wallets you asked about. in means the wallet received the asset.
  • Between whom: from and to are the two sides of the movement.
  • When and where: block.timestamp dates the transfer, and tx.hash links it to the transaction on a block explorer.

Handle Tokens Without a Symbol or Decimals​

Not every token has complete metadata. Explorer API's coverage of token metadata is still growing, and some contracts, including many spam tokens, don't expose a symbol or decimals. Here is the shape of an ERC-20 transfer record when that happens:

{
"type": "fungible",
"direction": "in",
"asset": {
"address": "0x<token-contract-address>",
"standard": "erc20",
"decimals": null
},
"amount": {
"raw": "10000000000000000",
"value": null,
"decimals": null
}
}

The record has no asset.symbol, and decimals and amount.value are null. Explorer API can't format the amount without decimals, but it still gives you the contract address and the exact quantity in amount.raw. For some tokens, asset.standard is also null, which means the contract emitted a Transfer event but isn't classified as a known standard yet.

Plan your display for these cases. Show amount.value when it is present. Otherwise, show the raw quantity labeled as base units, and use the contract address when the symbol is missing. Don't treat a null value as zero, and don't assume a token uses 18 decimals.

Filter Wallet Transfers by Direction, Type, and Block​

A raw history mixes everything: payments, swaps, NFT mints, and airdropped spam. Most feeds only show part of it. Explorer API applies filters on the server, so you page through only the transfers you plan to show, instead of downloading everything and discarding most of it.

Each example below shows only the params object. To run one, replace the params in the request from the previous section. You can combine any of these filters in one request, and a transfer must match all of them to appear.

Show Incoming or Outgoing Transfers​

direction decides which side of a transfer must be one of your wallets. Set it to in for transfers the wallet received, out for transfers it sent, or any for both:

"params": {
"accounts": ["$WALLET_ADDRESS"],
"direction": "in",
"limit": 10
}

Every record in the response now has direction: "in", with the wallet in to. Here are two of them, trimmed to a few fields:

[
{
"type": "fungible",
"direction": "in",
"from": "0x984573e30a7db8575ba4d71c4af59d22933e173d",
"to": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"asset": { "symbol": "gtUSDCp" },
"amount": { "value": "0.0717" }
},
{
"type": "internal",
"direction": "in",
"from": "0xa6cd233fa1fafde96591d073eac32ecbeee0007c",
"to": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"asset": { "symbol": "ETH" },
"amount": { "value": "0.000431283586209276" }
}
]

This is how you build separate "Received" and "Sent" tabs. Note that direction describes where the asset went, not whether the transaction succeeded.

Return Only Token or NFT Transfers​

filter.types takes one or more of the four transfer types from the table earlier. This request returns only token and NFT transfers, which suits a feed that lists collectibles and tokens but not ETH payments:

"params": {
"accounts": ["$WALLET_ADDRESS"],
"filter": { "types": ["fungible", "non-fungible"] },
"limit": 10
}

The response now skips native and internal transfers. Here is an NFT record and a token record from it, trimmed to the asset details:

[
{
"type": "non-fungible",
"asset": {
"address": "0x84198807972f196ed7d8b18b3b7a55b14237c0ea",
"standard": "erc721",
"symbol": "LPLART",
"tokenId": "24"
},
"amount": { "raw": "1" }
},
{
"type": "fungible",
"asset": {
"address": "0x8c106eedad96553e64287a5a6839c3cc78afa3d0",
"standard": "erc20",
"symbol": "gtUSDCp"
},
"amount": { "raw": "71700000000000000", "value": "0.0717" }
}
]

An NFT record identifies the token with asset.tokenId, and amount.raw gives the number of tokens moved. To show all ETH movement instead, use ["native", "internal"]. Leaving out types returns every type.

Limit Transfers to a Block Range​

filter.blocks limits results to a range of block heights. It needs a lower bound, gte (greater than or equal) or gt (greater than), and accepts an optional upper bound, lte or lt. Heights are plain integers:

"params": {
"accounts": ["$WALLET_ADDRESS"],
"filter": { "blocks": { "gte": 24000000, "lte": 24100000 } },
"limit": 10
}

Every record in the response falls inside the range. The block timestamps show which dates the range covers:

[
{
"type": "native",
"block": { "height": 24097270, "timestamp": "2025-12-26T14:01:47Z" }
},
{
"type": "fungible",
"block": { "height": 24097198, "timestamp": "2025-12-26T13:47:11Z" }
}
]

Block ranges help when you sync history in chunks, or when you only need recent activity. There is no timestamp filter. To cover a date range, look up the block heights at its start and end, and use them as the bounds. eth_getBlockByNumber returns each block's timestamp, so a binary search over block numbers finds the first block after a date. The Block Timestamp Lookup add-on returns that block in one call.

Hide Zero-Value Token Transfers​

Address poisoning is a common scam on EVM networks. An attacker sends a zero-amount token transfer from an address that looks like one the victim uses, so the fake address appears in the victim's history. If the victim later copies an address from that history, the funds go to the attacker.

Set filter.excludeZeroValue to true to drop token transfers with an amount of zero:

"params": {
"accounts": ["$WALLET_ADDRESS"],
"filter": { "excludeZeroValue": true },
"limit": 10
}

The response keeps the same shape, without the zero-amount token transfers. The filter targets token transfers. Native transfers always carry a positive value, so it doesn't change them. For a user-facing feed, turn this filter on by default.

Query Up to 25 Wallets in One Request​

A portfolio app often tracks several wallets for one user. Instead of sending one request per wallet, put up to 25 addresses in accounts. This example adds the public address of nick.eth:

"params": {
"accounts": [
"$WALLET_ADDRESS",
"0xb8c2C29ee19D8307cb7255e1Cd9CbDE883A267d5"
],
"direction": "any",
"limit": 10
}

The response merges both wallets into one list, newest first. A busy wallet such as vitalik.eth can fill the first page on its own, and the other wallet's transfers appear on later pages. With several accounts, direction is relative to the whole group. If you track more than 25 wallets, split them into groups and request each group separately.

Export a Wallet's Full Transfer History with Pagination​

Each response holds one page of transfers. To build a complete history, for example to import it into a database or to calculate a balance over time, you need to follow the cursor until no pages remain.

The pattern works like this. Send the first request without a cursor. Each response returns result.page.cursor. Pass that value as params.cursor in the next request, and keep every other field in params exactly the same. The cursor belongs to the query that produced it, so a request that changes accounts, direction, filter, or limit along with the cursor fails with an Invalid params error. When the cursor comes back null, you've reached the oldest transfer. Keep requesting pages until then, even if a page holds fewer records than your limit.

The script below follows that pattern. It sends each request with the x-token header, hides zero-value spam, and writes one transfer per line, in a format known as newline-delimited JSON (NDJSON). A busy wallet can have a very long history, so the script stops after 5 pages by default. You can raise that limit when you need more.

Create a directory for the script in the same terminal:

mkdir wallet-history && cd wallet-history

Create wallet-history.ts in it and paste the script. Node.js 24 removes the type annotations and runs the file directly, so you don't need a build step:

wallet-history.ts
import process from "node:process";

type TransferPage = {
data: Record<string, unknown>[];
page: { cursor: string | null };
};

const endpoint = process.env.QUICKNODE_ENDPOINT;
const token = process.env.QUICKNODE_TOKEN;
const wallet = process.env.WALLET_ADDRESS;
const maxPages = Number(process.env.MAX_PAGES ?? 5);

async function fetchPage(params: object): Promise<TransferPage> {
const response = await fetch(endpoint!, {
method: "POST",
headers: { "Content-Type": "application/json", "x-token": token! },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "qn_getAssetTransfers", params }),
signal: AbortSignal.timeout(60_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);

const body = await response.json();
if (body.error) throw new Error(`RPC ${body.error.code}: ${body.error.message}`);
return body.result;
}

async function main() {
if (!endpoint || !token || !wallet) {
throw new Error("Set QUICKNODE_ENDPOINT, QUICKNODE_TOKEN, and WALLET_ADDRESS");
}

// Send this exact query on every page. The cursor only works with the query that produced it.
const query = {
accounts: [wallet],
direction: "any",
filter: { excludeZeroValue: true },
limit: 100,
};
let cursor: string | null = null;
let count = 0;

for (let page = 0; page < maxPages; page++) {
const result = await fetchPage(cursor ? { ...query, cursor } : query);
for (const transfer of result.data) {
console.log(JSON.stringify(transfer));
count++;
}
cursor = result.page.cursor;
if (cursor === null) break;
}

console.error(
cursor === null
? `Saved ${count} transfers. This is the full history.`
: `Saved ${count} transfers. Older transfers remain. Raise MAX_PAGES to fetch more.`
);
}

main().catch((error: unknown) => {
console.error(error instanceof Error ? error.message : "History request failed");
process.exitCode = 1;
});

fetchPage sends one request and returns one page, and turns HTTP failures and JSON-RPC errors into readable messages. main builds the query once and reuses it on every page, adding only the cursor. Transfers go to standard output, and the summary goes to standard error, so you can redirect the transfers to a file and still see the summary in your terminal.

Run the script in the terminal where you set the variables earlier:

node wallet-history.ts > transfers.ndjson

For vitalik.eth, the terminal prints Saved 500 transfers. Older transfers remain. Raise MAX_PAGES to fetch more. A wallet with a shorter history prints This is the full history. instead. Open transfers.ndjson to see one transfer record per line, ready to load into a database or process line by line.

To go further back, raise the page limit for a single run. Each page takes a few seconds, so a 20-page run can take a couple of minutes:

MAX_PAGES=20 node wallet-history.ts > transfers.ndjson

To adapt the script to your own feed, change the query object. Add the types or blocks filter from the previous section, or list several wallets in accounts. Start a new run whenever you change the query, because a cursor from one query doesn't work with another.

Wrapping Up​

You now have the data layer for a wallet activity feed. You can request a wallet's native, internal, token, and NFT transfers with one method, read each record into a feed row, filter out the activity you don't want to show, and export a complete history page by page.

From here, connect the script's output to your application's storage, keyed by transferId. If you also need new activity delivered as it happens, rather than requested on demand, look at Quicknode Streams, which pushes blockchain data to your destination and supports historical backfills.

Resources​

Frequently Asked Questions​

How do I get the transfer history of an EVM wallet address?

Call the qn_getAssetTransfers method of Quicknode Explorer API with the wallet address in the accounts array. It returns the wallet's native, internal, ERC-20, ERC-721, and ERC-1155 transfers, newest first, with the transaction and block for each one. One request can cover up to 25 addresses.

Does Explorer API transfer history include every transaction?

No. It includes every asset movement, with one record for each. Calls that move no assets, such as token approvals, do not appear. A transaction that moves several assets, such as a token swap, produces several records that share the same transaction hash.

How do I get only ERC-20 token or NFT transfers for a wallet?

Set filter.types in the qn_getAssetTransfers request. Use fungible for ERC-20 transfers and non-fungible for ERC-721 and ERC-1155 transfers. You can combine it with the direction and block range filters, and Explorer API applies all of them on the server.

How do I get a wallet's full transfer history with pagination?

Pass result.page.cursor from each response as params.cursor in the next request, and keep every other parameter the same. Continue until the cursor is null. A request that changes the query while sending a cursor fails with an Invalid params error.

How can I hide address poisoning spam in a wallet's transfer history?

Set filter.excludeZeroValue to true in the qn_getAssetTransfers request. Explorer API then drops token transfers with an amount of zero, which attackers use to plant look-alike addresses in a wallet's history.

Why does a token transfer have no symbol or decimals?

Token metadata is not available for every contract. When it is missing, asset.symbol is absent, and decimals and amount.value are null. amount.raw still holds the exact quantity in base units, so display it with a base-units label instead of treating it as zero.