add listAccounts method

This commit is contained in:
ghost 2024-02-18 00:46:32 +02:00
parent 9fdc77494b
commit 7f01ecb141

View File

@ -571,4 +571,28 @@ class Client
return null; return null;
} }
public function listAccounts(): ?array
{
$this->_id++;
$this->_prepare(
'',
'POST',
[
'method' => 'listaccounts',
'params' => [],
'id' => $this->_id
]
);
$response = $this->_execute();
if (isset($response['result']) && is_array($response['result']))
{
return $response['result'];
}
return null;
}
} }