Add Block Txs

Add a Bitcoin block transactions to the tree

Code samples

const inputBody = '{
  "hash": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'
};

fetch('/tree/add-block-transaction',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /tree/add-block-transaction

Body parameter

{
  "hash": "string"
}

Parameters

Example responses

200 Response

{
  "code": 0,
  "message": "string",
  "data": {
    "txs": [
      {
        "txid": "string",
        "version": 0,
        "locktime": 0,
        "vin": [
          {}
        ],
        "vout": [
          {}
        ],
        "size": 0,
        "weight": 0,
        "fee": 0,
        "status": {
          "confirmed": true,
          "block_height": 0,
          "block_hash": "string",
          "block_time": 0
        }
      }
    ]
  }
}

Responses

Response Schema

Status Code 200

Last updated