Add a Bitcoin block transactions to the tree
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);
});
{
"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
}
}
]
}
}