Skip to content

Instantly share code, notes, and snippets.

@TrevorJTClarke
Created April 2, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TrevorJTClarke/16c3dccc273a6c0eafe5dc361cf62aad to your computer and use it in GitHub Desktop.
Save TrevorJTClarke/16c3dccc273a6c0eafe5dc361cf62aad to your computer and use it in GitHub Desktop.
axios({
method:'get',
url: 'https://web3api.io/api/v1/tokens/ETHEREUM_ADDRESS_HERE/transfers',
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' }
}).then(res => {
// res data example:
// {
// "totalRecords": 3545827,
// "records": [
// {
// "transactionHash": "0x0131efa29be22e9a1badb3cc7d9a2982d35e84b45fb4eb395d042415492a173f",
// "blockHash": "0x9f556015fff617a69b49de0aab70f2732a0029e0fda05b70c9416bb109fa5cf0",
// "blockNumber": "7491053",
// "tokenAddress": "0xb8c77482e45f1f44de1745f52c74426c631bdd52",
// "amount": "50000000000000000000",
// "timestamp": 1554236681000,
// "timestampNanoseconds": 0,
// "logIndex": 1,
// "blockchainId": "1c9c969065fcd1cf",
// "to": ["0x472b0e7daead8a868caf9f396f0bf86b5676b6db"],
// "from": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be",
// "decimals": "18",
// "name": "BNB",
// "symbol": "BNB",
// "isERC20": true,
// "isERC721": false,
// "isERC777": false,
// "isERC884": false,
// "isERC998": false
// }
// ]
// }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment