Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

How to get Token Balance ? #30

Open
mesutgunay opened this issue Mar 24, 2022 · 0 comments
Open

How to get Token Balance ? #30

mesutgunay opened this issue Mar 24, 2022 · 0 comments

Comments

@mesutgunay
Copy link

mesutgunay commented Mar 24, 2022

i want to ERC20 token balance with your module;

similar code for web3p;

$contract = new Contract($web3->provider, $string);
$contract->at($contractAddress)->call('balanceOf', $address, function ($err, $account) use (&$balance) {
if ($err !== null) {
echo 'Error: ' . $err->getMessage();
return;
}
$balance=goThen($account);
});

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

No branches or pull requests

1 participant