Questions tagged [bitcoin-cli]
should be used for questions related to the Bitcoin Core RPC client
383
questions
1
vote
0
answers
15
views
Create and spend P2WSH that locks coins with OP_CHECKLOCKTIMEVERIFY
I'm attempting to create a P2SWH address with a script that locks the coins for some time. And then I want to spend those coins from that address.
I've read a lot, some of the most relevant:
BIP173
...
1
vote
1
answer
100
views
Which RPC method is used to mine bitcoin?
Which of the following RPC methods is used to mine bitcoin and receive its reward?
generateblock
submitblock
submitheader
What is the difference between these methods?
1
vote
1
answer
44
views
Submitblock input parameters similar to getblock?
I have installed Bitcoin Core on my laptop.
Now open bitcoin daemon and do following:
First i run getbestblockhash to get the last block hash on the Blockchain. We call this hash as BestBlockHash.
...
0
votes
0
answers
25
views
Bitcoin lightnode not return private key for getnewaddress [duplicate]
I have run a bitcoin lightnode (bitcoind)
I use getnewaddress for create new wallet:
bitcoin-cli getnewaddress
This method return to me only wallet address.
How can I access to private key of this ...
4
votes
1
answer
97
views
What is the asm section of scriptSig
I am trying to understand the output from bitcoin-cli. The sample transaction's txid is 061959f1a3360d3781a870b2d43f73f7105b194b22f3765fcb9b8f545f9c8317, from block 222,222.
The asm section of ...
0
votes
1
answer
45
views
What's the difference between decoderawtransaction and decodescript?
I'm looking for an explanation on the difference between the bitcoin CLI for decoderawtransaction and decodescript please.
From what I know, decodetransaction will undo the hash and ECDSA elliptic ...
0
votes
0
answers
34
views
Why my bitcoin-cli getpeerinfo return an empty list?
I am running bitcoind and it is updating blocks as follows:
However, when I have run bitcoin-cli getpeerinfo, it only returns an empty list, but not peers connected. So if there is no peer connected ...
1
vote
0
answers
32
views
How can I hash a block header using bitcoin-cli and terminal commands?
I would like to hash a block header using terminal commands and look at all the pretty leading 0s, but I can't figure out how to do this correctly using block header data from bitcoin-cli.
Here is ...
2
votes
1
answer
128
views
Mismatch between utxo increase and total utxos
I'm running bitcoin core and using the commands getblockstats and gettxoutsetinfo.
I ran gettxoutsetinfo at block 770992 and it showed a total of 83,420,287 unspent transaction outputs. I then waited ...
0
votes
1
answer
132
views
How to get started with bitcoin-cli on macOS?
I've been having a really hard time struggling through installation. The problem is there seem to be two ways to install, one through a download link and one through src. However, both methods still ...
1
vote
1
answer
138
views
How to delete a specific wallet in bitcoind
I accidentally created a new wallet with
$ bitcoin-cli -testnet createwallet help
{
"name": "help",
"warning": ""
}
Now I would like to delete it without ...
0
votes
0
answers
84
views
Bitcoin core V22 Authorization failed: Incorrect rpcuser or rpcpassword
I have my full node connected through Tor. I ended up changing my onion service and now I'm getting error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password ...
2
votes
1
answer
159
views
InvalidateBlock RPC call behavior with Bitcoin Core
I'm currently implementing the rpc call invalidateblock on btcd, an alternate Bitcoin full node implementation. I'm trying to figure out how Bitcoin Core handles branch selection on reorganizations ...
3
votes
1
answer
64
views
How to spend an imported rawtr() descriptor with bitcoin-cli?
I created a transaction that creates a taproot output that can be spent using the private key (KEY) corresponding to the taproot output key. Then I imported the WIF formatted private key into Bitcoin ...
2
votes
1
answer
318
views
With Legacy bitcoin addresses deprecated, will Bitcoin Core no longer be able to sign messages from an address?
Bitcoin Core can only sign messages from legacy bitcoin addresses, in my experience. With legacy addresses being deprecated in the software, does this mean that Bitcoin Core will no longer be able to ...