Add fee response in BTC to getrawtransaction #23264
For Reviewers
- Verbose arg is now an int
- Verbose = 2 includes a
fee
field andprevout
- ./test/functional/rpc_rawtransaction.py contains a new test to validate fields of new verbosity 2 (not the values)
0bitcoin-cli -chain=test getrawtransaction 9ae533f7da9be4a34997db78343a8d8d6d6186b6bba3959e56f416a5c70e7de4 2 000000000000001d442e556146d5f2841d85150c200e8d8b8a4b5005b13878f6
0 "in_active_chain": true,
1 "txid": "9ae533f7da9be4a34997db78343a8d8d6d6186b6bba3959e56f416a5c70e7de4",
2 "hash": "7f23e3f3a0a256ddea1d35ffd43e9afdd67cc68389ef1a804bb20c76abd6863e",
3 ....
4 "vin": [
5 {
6 "txid": "23fc75d6d74f6f97e225839af69ff36a612fe04db58a4414ec4828d1749a05a0",
7 "vout": 0,
8 "scriptSig": {
9 "asm": "",
10 "hex": ""
11 },
12 "prevout": {
13 "generated": false,
14 "height": 2099486,
15 "value": 0.00017764,
16 "scriptPubKey": {
17 "asm": "0 7846ce1ced3253d8bd43008db2ca364cc722f5a2",
18 "hex": "00147846ce1ced3253d8bd43008db2ca364cc722f5a2",
19 "address": "tb1q0prvu88dxffa302rqzxm9j3kfnrj9adzk49mlp",
20 "type": "witness_v0_keyhash"
21 }
22 },
23 "sequence": 4294967295
24 },
25...
26 "fee": 0.00000762
27}