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

How to get Token Balance ? #30

@mesutgunay

Description

@mesutgunay

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions