Browse Source

add listAccounts method

main
ghost 9 months ago
parent
commit
7f01ecb141
  1. 24
      src/Client.php

24
src/Client.php

@ -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;
}
} }

Loading…
Cancel
Save