From 9fdc77494bbf366ff3c58c37dba4213330778954 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 18 Feb 2024 00:36:57 +0200 Subject: [PATCH] define getNewAddress attributes --- src/Client.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 53aa3af..2fb314a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -473,7 +473,7 @@ class Client return null; } - public function getNewAddress(): ?string + public function getNewAddress(?string $account = null, $address_type = null): ?string { $this->_id++; @@ -482,7 +482,11 @@ class Client 'POST', [ 'method' => 'getnewaddress', - 'params' => [], + 'params' => + [ + $account, + $address_type + ], 'id' => $this->_id ] );