Socket
Socket
Sign inDemoInstall

minercraft

Package Overview
Dependencies
23
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

3

index.js

@@ -14,3 +14,4 @@ const Fee = require('./fee')

constructor(o) {
o = Object.assign(o, { validate: Validate })
o.validate = Validate
o.headers = Object.assign({ "Content-Type": "application/json" }, o.headers)
this.fee = new Fee(o)

@@ -17,0 +18,0 @@ this.tx = new Transaction(o)

{
"name": "minercraft",
"version": "0.0.6",
"version": "0.0.7",
"description": "interact with bitcoin miner apis",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -73,3 +73,3 @@ # Minercraft

```
```javascript
const miner = new Minercraft({

@@ -84,3 +84,3 @@ "url": "https://merchantapi.taal.com"

```
```javascript
const miner = new Minercraft({

@@ -100,3 +100,3 @@ url: "https://www.ddpurse.com/openapi",

```
```javascript
const miner = new Minercraft({

@@ -121,3 +121,3 @@ url: "https://merchantapi.matterpool.io",

```
```json
fee rate: {

@@ -133,3 +133,3 @@ valid: true,

```
```javascript
let rate = await miner.fee.rate({ verbose: true })

@@ -178,3 +178,3 @@ console.log("verbose fee rate:", rate)

```
```json
{

@@ -189,3 +189,4 @@ apiVersion: '0.1.0',

minerId: '03c51d59a737a0ebc064344bf206b7140bf51a9ef8d6cb75dc2d726853d7c76758',
txSecondMempoolExpiry: 0
txSecondMempoolExpiry: 0,
valid: true
}

@@ -196,3 +197,3 @@ ```

```
```javascript
let status = await miner.tx.status(txid, { verbose: true })

@@ -204,3 +205,3 @@ console.log(status)

```
```json
{

@@ -221,3 +222,4 @@ "payload": {

"encoding": "UTF-8",
"mimetype": "application/json"
"mimetype": "application/json",
"valid": true
}

@@ -237,3 +239,3 @@ ```

```
```javascript
let response = await miner.tx.push("0100000001648ed7d1c1a27ec923445c8d404e227145218c4ce01cf958a898c5a048e8f264020000006a47304402207dc1953455be091c8df18e7f7e1424bc4efdced3e400642f8316e3ef298c3f30022062d833b3f1b94593ec7c088b930e2987475c7d99bf19f5714b12a9facff100df41210273f105be3e7ca116e96c7c40f17267ae05ede7160eb099aa2146a88b6328f4ecffffffff030000000000000000fdc901006a223144535869386876786e36506434546176686d544b7855374255715337636e7868770c57544458565633505a4b474414e5ae89e5bebd2fe585ade5ae892fe99c8de982b119323032302d30342d30365430363a30303a30302b30383a30304c697b22617169223a223538222c22706d3235223a223332222c22706d3130223a223636222c22736f32223a2235222c226e6f32223a223235222c22636f223a22302e373530222c226f33223a223635222c22706f6c223a22504d3130222c22717561223a22e889af227d4cfb78da75d1c16a02311006e077c959964cb29944dfa1d07bf1209e0a6b57b137114aaf2d2d5e446d7b29d59e3c492f22f834d9ea5b3859e826bba4b73fc34cf898b999b0dee89675184ad662c3815094a5293370ca1a298f73415151ba2b9370cdfd9c124f34c55c563fe419c5eb2b9aa5b1fb1e3d7edf66c5cf93fdfa2ed6072a66ae2621d15203775d99fb070013c50da7cab45599c09b04062688999437993f53d91933ade6a7f5d16e37e7e5676842307553aa1b2685c19e02137a93a94c92c74c69dc54bc7f9c173bfbf21882745b379784a60e0a0f071ea4fce1a45f521a399cfae770f6f0605f67f6795f0381688010dd1da7dd0b690c97db22020000000000001976a914666675d887a7ae09835af934096d9fcbbb70eed288ac61290000000000001976a9149e7520bc258934a3d58704ab98ed0200e2c1bb9688ac00000000", {

@@ -249,4 +251,2 @@ verbose: true

### Automatically handled
Minercraft takes care of all the cryptographic validation of the API responses automatically.

@@ -260,3 +260,3 @@

```
```json
{

@@ -272,3 +272,3 @@ valid: true,

```
```json
{

@@ -275,0 +275,0 @@ payload: {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc