mirror of
https://github.com/kevachat/kevacoin-php.git
synced 2025-01-22 12:34:15 +00:00
implement getReceivedByAccount method
This commit is contained in:
parent
7f01ecb141
commit
1aed6f73d7
@ -529,6 +529,34 @@ class Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getReceivedByAccount(string $account, ?int $minconf = 0): ?float
|
||||||
|
{
|
||||||
|
$this->_id++;
|
||||||
|
|
||||||
|
$this->_prepare(
|
||||||
|
'',
|
||||||
|
'POST',
|
||||||
|
[
|
||||||
|
'method' => 'getreceivedbyaccount',
|
||||||
|
'params' =>
|
||||||
|
[
|
||||||
|
$account,
|
||||||
|
$minconf
|
||||||
|
],
|
||||||
|
'id' => $this->_id
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
$response = $this->_execute();
|
||||||
|
|
||||||
|
if (isset($response['result']) && is_float($response['result']))
|
||||||
|
{
|
||||||
|
return $response['result'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public function sendToAddress(
|
public function sendToAddress(
|
||||||
string $address,
|
string $address,
|
||||||
float $amount,
|
float $amount,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user