Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Goal: to see all PAY token transactions in the same list with the regular ETH transactions.
- Example address to use: 0x3aBB49c151E3deE1aab2E1F603a14e90af2c96Ba (see https://etherscan.io/address/0x3aBB49c151E3deE1aab2E1F603a14e90af2c96Ba)
- Etherscan docs: https://etherscan.io/apis#accounts (Get a list of "ERC20 - Token Transfer Events" by Address)
- Direct API: https://api.etherscan.io/api?module=account&action=tokentx&contractaddress=0xb97048628db6b661d4c2aa833e95dbe1a905b280&address=XXXX&page=1&offset=100&sort=asc&apikey=YourApiKeyToken
- PAY Token address: 0xB97048628DB6B661D4C2aA833e95Dbe1A905B280 (see https://etherscan.io/token/0xB97048628DB6B661D4C2aA833e95Dbe1A905B280)
- Note: the data from the API is the same as normal transactions except a token transaction also includes a tokenSymbol, tokenName and tokenDecimals.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement