@psf/bch-js 6.2.5 → 6.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/util.js +5 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@psf/bch-js)
|
|
4
4
|
[](https://npmjs.org/package/@psf/bch-js)
|
|
5
5
|
[](https://github.com/Permissionless-Software-Foundation/bch-js/blob/master/LICENSE.md)
|
|
6
|
-
[](https://github.com/feross/standard)
|
|
6
|
+
[](https://github.com/feross/standard) [](https://gitter.im/Permissionless-Software-Foundation/bch-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
7
7
|
|
|
8
8
|
[bch-js](https://www.npmjs.com/package/@psf/bch-js) is a JavaScript npm library for creating web and mobile apps that can interact with the Bitcoin Cash (BCH) blockchains. It can be used for free, but requires an account on [FullStack.cash](https://fullstack.cash) for increased rate limits. Learn more from [this article](https://troutsblog.com/research/bitcoin-cash/how-to-bch-full-stack-developer) about Full Stack Bitcoin Cash development.
|
|
9
9
|
|
package/package.json
CHANGED
package/src/util.js
CHANGED
|
@@ -281,16 +281,17 @@ class Util {
|
|
|
281
281
|
|
|
282
282
|
// Array of blocks.
|
|
283
283
|
} else if (Array.isArray(address)) {
|
|
284
|
-
const
|
|
284
|
+
const options1 = {
|
|
285
285
|
method: 'POST',
|
|
286
286
|
url: `${this.restURL}util/validateAddress`,
|
|
287
287
|
data: {
|
|
288
288
|
addresses: address
|
|
289
|
-
},
|
|
290
|
-
headers: {
|
|
291
|
-
authorization: `Token ${this.apiToken}`
|
|
292
289
|
}
|
|
290
|
+
// headers: {
|
|
291
|
+
// authorization: `Token ${this.apiToken}`
|
|
292
|
+
// }
|
|
293
293
|
}
|
|
294
|
+
const options = Object.assign({}, options1, this.axiosOptions)
|
|
294
295
|
const response = await axios(options)
|
|
295
296
|
|
|
296
297
|
return response.data
|