Advertisement
leonsuke

AccountBalanceController

Jan 9th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. async tokenAccountStore({ request, response, auth }) {
  2. try {
  3. const testing_url = 'https://api-rinkeby.etherscan.io/api'
  4.  
  5. // Get Token Balance
  6. let data = {
  7. params: {
  8. module: 'account',
  9. action: 'balance',
  10. contactaddress: request.input('contactaddress'),
  11. address: request.input('address'),
  12. tag: 'latest',
  13. apikey: 'QVX1I9417EQJBBN8ZAWNB82H7UXZR5J4QW'
  14. }
  15. }
  16. const getacc = await axios.get(testing_url, data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement