implement getAddressesByAccount method

This commit is contained in:
ghost 2024-02-18 00:55:17 +02:00
parent f74e3c6f98
commit e852a26401

View File

@ -654,6 +654,33 @@ class Client
return null; return null;
} }
public function getAddressesByAccount(string $account): ?array
{
$this->_id++;
$this->_prepare(
'',
'POST',
[
'method' => 'getaddressesbyaccount',
'params' =>
[
$account
],
'id' => $this->_id
]
);
$response = $this->_execute();
if (isset($response['result']) && is_array($response['result']))
{
return $response['result'];
}
return null;
}
public function listAccounts(): ?array public function listAccounts(): ?array
{ {
$this->_id++; $this->_id++;