File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,11 @@ class Ninsight {
68
68
try {
69
69
// Handle single address.
70
70
if ( typeof address === "string" ) {
71
- const response = await axios . get (
71
+ const response = await axios . post (
72
72
`${ this . ninsightURL } /address/utxo/${ address } ` ,
73
+ {
74
+ addresses : [ address ]
75
+ } ,
73
76
_this . axiosOptions
74
77
)
75
78
return response . data
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ describe(`#Ninsight`, () => {
31
31
32
32
it ( `should GET utxos for a single address` , async ( ) => {
33
33
// Stub the network call.
34
- sandbox . stub ( axios , "get " ) . resolves ( { data : mockData . utxo } )
34
+ sandbox . stub ( axios , "post " ) . resolves ( { data : mockData . utxo } )
35
35
36
36
const addr = "bitcoincash:qqh793x9au6ehvh7r2zflzguanlme760wuzehgzjh9"
37
37
You can’t perform that action at this time.
0 commit comments