mirror of
https://github.com/kevachat/kevacoin-php.git
synced 2025-01-22 12:34:15 +00:00
add listAccounts method
This commit is contained in:
parent
9fdc77494b
commit
7f01ecb141
@ -571,4 +571,28 @@ class Client
|
||||
|
||||
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…
x
Reference in New Issue
Block a user