首先圈定范围此次笔记只是记录关于btc witness下的transaction 字段信息。(基于go语言版本)
1.先贴出btc transaction 的json格式的信息。
{
"confirmations": 1,
"block_height": 549234,
"block_hash": "000000000000000000068978bbded6ec87df593448bf94dfb5849737f7e41dc0",
"block_time": 1541658656,
"created_at": 1541658374,
"fee": 90000,
"hash": "57b2d1cd705e8a69a92cf05544b9f4dd9e50eeff4905ef2d9f8b1542a54f6de0",
"inputs_count": 1,
"inputs_value": 3538076,
"is_coinbase": false,
"is_double_spend": false,
"is_sw_tx": true,
"weight": 766,
"vsize": 192,
"witness_hash": "f1beb4556b8b289d879b422cc1df899a8f32fbc379e87ba36cd0dff8bb1ebb1f",
"lock_time": 0,
"outputs_count": 2,
"outputs_value": 3448076,
"size": 382,
"sigops": 7,
"version": 1,
"inputs": [{
"prev_addresses":