Skip to content

Commit 07341d0

Browse files
committed
fixed multi address and get xpub bug
1 parent 48d5862 commit 07341d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Explorer/Explorer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getXpub($xpub, $limit=100, $offset=0, $filter=FilterType::Remove
7474
'offset'=>intval($offset),
7575
'filter'=>intval($filter)
7676
);
77-
return new Xpub($this->blockchain->get('multiaddr/' . $params));
77+
return new Xpub($this->blockchain->get('multiaddr?' . $params));
7878
}
7979

8080
public function getMultiAddress($addresses, $limit=100, $offset=0, $filter=FilterType::RemoveUnspendable) {
@@ -88,7 +88,7 @@ public function getMultiAddress($addresses, $limit=100, $offset=0, $filter=Filte
8888
'filter'=>intval($filter),
8989
'active'=>implode('|', $addresses)
9090
);
91-
return new MultiAddress($this->blockchain->get('multiaddr/' . $params));
91+
return new MultiAddress($this->blockchain->get('multiaddr?' . $params));
9292
}
9393

9494
/* Get a list of unspent outputs for an array of addresses

src/Explorer/FilterType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Blockchain\Explorer;
4+
35
class FilterType
46
{
57
const All = 4;

0 commit comments

Comments
 (0)