API Reference

Returns a paginated response of ERC20 token transfers on a given wallet

Log in to see full request history
"use strict"; const Shards = require("web3-shards"); const shards = Shards.API.Ethereum.V1; shards.configure({ apiKey: "YOUR_API_KEY", // Get your api key @ https://web3shards.io/console maxRequestsPerSecond:5, // client-side limiter to prevent accidental burning logger: 1 // 0=none,1=errors,2=verbose }); const getTransfersOnWalletForToken = async function() { const wallet = "0xade7b949f70eafc2c0999fc6b8f18b0ea0382746"; const token = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"; const type = "erc20"; const page = 1; const resp = await shards.transfers.getTransfersOnWalletForToken(wallet, token, type, page); console.log(resp) } getTransfersOnWalletForToken();
Query Params
string
Defaults to eth

The target chain.

int32
Defaults to 1

The page from which to begin querying data from. Max page size is 100.

string
Defaults to 0xade7b949f70eafc2c0999fc6b8f18b0ea0382746

The wallet address

string
Defaults to erc20

The type of asset

string
Defaults to 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

The token address

Headers
string
Defaults to db2f88b1-21cd-440b-9e8c-486a8688e34e
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain