Alchemy
How to list Alchemy asset transfers
Use alchemy_getAssetTransfers to filter historical transfers on one network. Use Transfers By Wallet to query several supported networks with one request.
Documentation reviewed · 2 methods with sources
Ways to do it
API
alchemy_getAssetTransfers
Query historical native, internal, ERC-20, ERC-721, or ERC-1155 transfers with from/to and block filters.
Read source: Alchemy Transfers API: alchemy_getAssetTransfers- Requirements
- An Alchemy app API key in the network endpoint URL and a JSON-RPC POST body.
- Limitations
- The method costs 120 compute units per call. The default maxCount is 1,000 transfers, encoded as 0x3e8. Reuse the returned pageKey for the next page.
Example shell
curl --fail "https://eth-mainnet.g.alchemy.com/v2/$ALCHEMY_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"alchemy_getAssetTransfers","params":[{"fromAddress":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","category":["external","erc20"],"maxCount":"0x64"}]}'API
POST /data/v1/{apiKey}/transfers/by-address
Find historical transfers for one wallet across multiple supported EVM networks and sort them by block timestamp.
Read source: Alchemy Transfers By Wallet (Beta)- Requirements
- An Alchemy API key in the request URL, a wallet address, an array of supported networks, and one or more transfer categories.
- Limitations
- This endpoint is in beta. maxCount defaults to 100 per page and pageKey continues the results. HTTP 200 can include partial network or category errors alongside successful transfers.
Example shell
curl --fail "https://api.g.alchemy.com/data/v1/$ALCHEMY_API_KEY/transfers/by-address" \
--header 'Content-Type: application/json' \
--data '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","networks":["eth-mainnet","base-mainnet"],"category":["external","erc20"],"maxCount":50}'