-
-
Save shesek/cecfe7f154f7a0356d8882f694713e20 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
bitcoind -regtest -daemon | |
bitcoin-cli -regtest -rpcwait importmulti '[{"desc":"pk(0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)#gn28ywm7","timestamp":"now","watchonly":true}]' | |
bitcoin-cli -regtest getaddressinfo mrCDrCybB6J1vRfbwM5hemdJz73FwDBC8r | |
bitcoin-cli -regtest stop |
This file contains 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
$ PATH=bitcoin-0.19.1/bin ./test.sh | |
[ | |
{ | |
"success": true | |
} | |
] | |
{ | |
"address": "mrCDrCybB6J1vRfbwM5hemdJz73FwDBC8r", | |
"scriptPubKey": "76a914751e76e8199196d454941c45d1b3a323f1433bd688ac", | |
"ismine": false, | |
"solvable": true, | |
"desc": "pkh([751e76e8]0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)#6ewytvca", | |
"iswatchonly": false, | |
"isscript": false, | |
"iswitness": false, | |
"pubkey": "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", | |
"iscompressed": true, | |
"label": "", | |
"ischange": false, | |
"timestamp": 0, | |
"hdkeypath": "m", | |
"hdseedid": "0000000000000000000000000000000000000000", | |
"hdmasterfingerprint": "751e76e8", | |
"labels": [ | |
{ | |
"name": "", | |
"purpose": "receive" | |
} | |
] | |
} | |
$ PATH=bitcoin-0.20.0/bin ./test.sh | |
[ | |
{ | |
"success": true | |
} | |
] | |
{ | |
"address": "mrCDrCybB6J1vRfbwM5hemdJz73FwDBC8r", | |
"scriptPubKey": "76a914751e76e8199196d454941c45d1b3a323f1433bd688ac", | |
"ismine": false, | |
"solvable": false, | |
"iswatchonly": false, | |
"isscript": false, | |
"iswitness": false, | |
"ischange": false, | |
"labels": [ | |
"" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment