This commit is contained in:
Arionum
2018-02-01 11:47:05 +02:00
parent eb94f4bd22
commit 53fd393611
2 changed files with 13 additions and 0 deletions

View File

@@ -24,3 +24,12 @@ Block explorer: https://arionum.info
Forums: https://forum.arionum.com
Development Fund
ARO: 5WuRMXGM7Pf8NqEArVz1NxgSBptkimSpvuSaYC79g1yo3RDQc8TjVtGH5chQWQV7CHbJEuq9DmW5fbm CEW4AghQr
LTC: LWgqzbXGeucKaMmJEvwaAWPFrAgKiJ4Y4m
BTC: 1LdoMmYitb4C3pXoGNLL1VRj7xk3smGXoU
ETH: 0x4B904bDf071E9b98441d25316c824D7b7E447527
BCH: qrtkqrl3mxzdzl66nchkgdv73uu3rf7jdy7el2vduw
If you'd like to support the Arionum development, you can donate to the addresses listed above.

View File

@@ -130,7 +130,11 @@ echo "Mempool size: $res\n";
echo "$x[hostname]\t$a[height]\n";
}
}elseif($cmd=="balance"){
$id=san($argv[2]);
$res=$db->single("SELECT balance FROM accounts WHERE id=:id OR public_key=:id2 LIMIT 1",array(":id"=>$id, ":id2"=>$id));
echo "Balance: ".number_format($res)."\n";
} else {
echo "Invalid command\n";