mirror of
https://github.com/kevachat/kevacoin-php.git
synced 2025-01-22 04:24:28 +00:00
add kevaListNamespaces method
This commit is contained in:
parent
adaa60ad07
commit
29685b02ce
@ -270,4 +270,28 @@ class Client
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function kevaListNamespaces(): ?array
|
||||
{
|
||||
$this->_id++;
|
||||
|
||||
$this->_prepare(
|
||||
'',
|
||||
'POST',
|
||||
[
|
||||
'method' => 'keva_list_namespaces',
|
||||
'params' => [],
|
||||
'id' => $this->_id
|
||||
]
|
||||
);
|
||||
|
||||
$response = $this->_execute();
|
||||
|
||||
if (!empty($response['result']) && is_array($response['result']))
|
||||
{
|
||||
return $response['result'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user