Open eracom-tester opened 2 years ago
$eth->accounts(function ($err, $accounts) use ($eth) {
if ($err !== null) { echo 'Error: ' . $err->getMessage(); return; } foreach ($accounts as $account) { echo 'Account: ' . $account . PHP_EOL; $eth->getBalance($account, function ($err, $balance) { if ($err !== null) { echo 'Error: ' . $err->getMessage(); return; } echo 'Balance: ' . $balance . PHP_EOL; }); }
});
$eth->accounts(function ($err, $accounts) use ($eth) {
});