Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Goal: to see all PAY token transactions in the same list with the regular ETH transactions.
  2.  
  3. Example address to use: 0x3aBB49c151E3deE1aab2E1F603a14e90af2c96Ba (see https://etherscan.io/address/0x3aBB49c151E3deE1aab2E1F603a14e90af2c96Ba)
  4. Etherscan docs: https://etherscan.io/apis#accounts (Get a list of "ERC20 - Token Transfer Events" by Address)
  5. Direct API: https://api.etherscan.io/api?module=account&action=tokentx&contractaddress=0xb97048628db6b661d4c2aa833e95dbe1a905b280&address=XXXX&page=1&offset=100&sort=asc&apikey=YourApiKeyToken
  6. PAY Token address: 0xB97048628DB6B661D4C2aA833e95Dbe1A905B280 (see https://etherscan.io/token/0xB97048628DB6B661D4C2aA833e95Dbe1A905B280)
  7.  
  8. 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