Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get MATIC balance from Polygon Chain not documented #372

Open
kombos opened this issue Feb 3, 2023 · 1 comment
Open

Get MATIC balance from Polygon Chain not documented #372

kombos opened this issue Feb 3, 2023 · 1 comment

Comments

@kombos
Copy link

kombos commented Feb 3, 2023

Maticjs documentation of wiki does not how how to get the MATIC balance from Polygon Chain. Am I missing something?

@karlvlam
Copy link

karlvlam commented Apr 3, 2023

@kombos I put the contract address of MATIC in the erc20 function. Hope it helps.

const erc20ChildToken = posClient.erc20('0x0000000000000000000000000000000000001010');                         
let bal = await erc20ChildToken.getBalance(providerChild.getAddress());     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@karlvlam @kombos and others