mv post params to query string
This commit is contained in:
parent
522c24f531
commit
4946583afe
|
@ -100,14 +100,16 @@ Insight.prototype.getTransactions = function(addresses, from, to, cb) {
|
||||||
if (_.isNumber(from)) qs.push('from=' + from);
|
if (_.isNumber(from)) qs.push('from=' + from);
|
||||||
if (_.isNumber(to)) qs.push('to=' + to);
|
if (_.isNumber(to)) qs.push('to=' + to);
|
||||||
|
|
||||||
|
// Trim output
|
||||||
|
qs.push('noAsm=1');
|
||||||
|
qs.push('noScriptSig=1');
|
||||||
|
qs.push('noSpent=1');
|
||||||
|
|
||||||
var args = {
|
var args = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: this.apiPrefix + '/addrs/txs' + (qs.length > 0 ? '?' + qs.join('&') : ''),
|
path: this.apiPrefix + '/addrs/txs' + (qs.length > 0 ? '?' + qs.join('&') : ''),
|
||||||
json: {
|
json: {
|
||||||
addrs: [].concat(addresses).join(','),
|
addrs: [].concat(addresses).join(',')
|
||||||
noAsm: 1,
|
|
||||||
noScriptSig: 1,
|
|
||||||
noSpent: 1,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue