Skip to content

It returns native chain token balances of the given network and address

Notifications You must be signed in to change notification settings

cvillegas31/multi-network-balance-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-network-balance-api

This repository contains NodeJS with a single endpoint which when called with parameters of address and network, returns native chain token balances of the given address.

It supports the following networks

  1. mainnet
  2. rinkeby //boba network https://blockexplorer.rinkeby.boba.network/address/0x498968C2B945Ac37b78414f66167b0786E522636/transactions
  3. goerli
  4. kovan
  5. optimism-mainnet // https://optimistic.etherscan.io/
  6. optimism-kovan // https://kovan-optimistic.etherscan.io/
  7. arbitrum-mainnet
  8. arbitrum-rinkeby
  9. polygon-mainnet //https://polygonscan.com/
  10. polygon-mumbai
  11. gnosis

Testing the API in a local environment

  1. clone the project and run the following command

    node index.js
    
  2. from a browser

    http://localhost:3001/api/balance/<network>/<address>
    http://localhost:3001/api/balance/polygon-mainnet/0x67B94473D81D0cd00849D563C94d0432Ac988B49
    

About

It returns native chain token balances of the given network and address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published