Skip to content

Commit 774e5ac

Browse files
committed
Added Validate Bitcoin Address
1 parent 2c9dcf2 commit 774e5ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ElectrumPHP.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,18 @@ public function getSeed(){
267267

268268
}
269269

270+
/*
271+
* $addr: Bitcoin Address;
272+
*/
273+
public function validate($addr){
274+
275+
$params = [
276+
'address' => $addr
277+
];
278+
return $this->call("validateaddress", $params);
279+
280+
}
281+
270282
/*
271283
* $privateKey: Bitcoin Private Key;
272284
*/

0 commit comments

Comments
 (0)