-
-
Save mymtw/99768536e43c5e9993c24373bbd6ce40 to your computer and use it in GitHub Desktop.
bitcoin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./bitcoin-cli -regtest -rpcwallet=wallet1 listunspent | |
| [ | |
| { | |
| "txid": "a9a39d9f388eb7d2d99f79d5f31f0e076a37061b1de5b104fa7500a481cba95b", | |
| "vout": 0, | |
| "address": "2N8RF8rrwxLKtRYLfpRkf9p65hpND3AAFwT", | |
| "label": "", | |
| "redeemScript": "0014dd47e79764938c67a961893b91c97f5cd67517a7", | |
| "scriptPubKey": "a914a66f012b7489f2af076a2a6cebf18658d186080487", | |
| "amount": 50.00000000, | |
| "confirmations": 101, | |
| "spendable": true, | |
| "solvable": true, | |
| "desc": "sh(wpkh([72fc8f8c/0'/0'/0']02fcd4b3826a882cf17b4df0bd1facdee7c9e7869b17de400fac15dba85760b2e5))#ujf7req0", | |
| "safe": true | |
| } | |
| ] | |
| ./bitcoin-cli -regtest -rpcwallet=wallet1 getreceivedbyaddress 2N8RF8rrwxLKtRYLfpRkf9p65hpND3AAFwT | |
| 0.00000000 | |
| ./bitcoin-cli -regtest -rpcwallet=wallet1 decoderawtransaction 01010101...000 | |
| { | |
| "txid": "a9a39d9f388eb7d2d99f79d5f31f0e076a37061b1de5b104fa7500a481cba95b", | |
| "hash": "0ed946ca23c2915b01d43d9dfdd35930b0489bf4007feb6772c450e83dcb9552", | |
| "version": 2, | |
| "size": 169, | |
| "vsize": 142, | |
| "weight": 568, | |
| "locktime": 0, | |
| "vin": [ | |
| { | |
| "coinbase": "520101", | |
| "sequence": 4294967295 | |
| } | |
| ], | |
| "vout": [ | |
| { | |
| "value": 50.00000000, | |
| "n": 0, | |
| "scriptPubKey": { | |
| "asm": "OP_HASH160 a66f012b7489f2af076a2a6cebf18658d1860804 OP_EQUAL", | |
| "hex": "a914a66f012b7489f2af076a2a6cebf18658d186080487", | |
| "reqSigs": 1, | |
| "type": "scripthash", | |
| "addresses": [ | |
| "2N8RF8rrwxLKtRYLfpRkf9p65hpND3AAFwT" | |
| ] | |
| } | |
| }, | |
| { | |
| "value": 0.00000000, | |
| "n": 1, | |
| "scriptPubKey": { | |
| "asm": "OP_RETURN aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf9", | |
| "hex": "6a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf9", | |
| "type": "nulldata" | |
| } | |
| } | |
| ] | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment