mirror of
https://github.com/kevachat/kevacoin-php.git
synced 2025-02-02 01:44:36 +00:00
define getNewAddress attributes
This commit is contained in:
parent
164ad7245c
commit
9fdc77494b
@ -473,7 +473,7 @@ class Client
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNewAddress(): ?string
|
public function getNewAddress(?string $account = null, $address_type = null): ?string
|
||||||
{
|
{
|
||||||
$this->_id++;
|
$this->_id++;
|
||||||
|
|
||||||
@ -482,7 +482,11 @@ class Client
|
|||||||
'POST',
|
'POST',
|
||||||
[
|
[
|
||||||
'method' => 'getnewaddress',
|
'method' => 'getnewaddress',
|
||||||
'params' => [],
|
'params' =>
|
||||||
|
[
|
||||||
|
$account,
|
||||||
|
$address_type
|
||||||
|
],
|
||||||
'id' => $this->_id
|
'id' => $this->_id
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user