Questions tagged [bitcoin-cli]

The Bitcoin-Core wallet provides a Command-LIne-Interface (CLI) that can be used to retrieve information from the wallet or to perform certain actions.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

Can't to send btc with bitcoin-cli

I sent transaction with bitcoin-cli: bitcoin-cli sendtoaddress tb1q3qlv7k648hec866a0x395hq0h3sqcg2lrq5r0k 0.001 As an answer I've got transaction Id. But it still has no confirmation (a few hours). ...
Mikki Ukraine's user avatar
0 votes
0 answers
33 views

Listunspent does not return all utxos [duplicate]

I am using Bitcoin Core to get all UTXOs for watchonly imported addresses. The strategy is the following: I load a new wallet await client.execute("loadwallet", ["testwallet"]) I ...
Nahum Maurice's user avatar
1 vote
0 answers
15 views

Building a CPFP raw transaction to confirm a force-closed Lightning channel [closed]

I am attempting to use bitcoin-cli createrawtransaction to build a CPFP transaction to pay for a low-fee channel close that has been unconfirmed for over a week. I have all of the details, i.e, txid, ...
The Daniel's user avatar
0 votes
1 answer
73 views

How to buy BTC with a non custodial wallet directly?

I apologize if this question does not make sense. But please correct me if I'm incorrect. If someone has a US Bank with a positive balance and has created a wallet using the bitcoin core "bitcoin-...
Ralph Yozzo's user avatar
0 votes
2 answers
61 views

Bitcoin node : importprivkey does not import all getnewaddress previously created

I have a problem with my bitcoin wallet recovery process. I have a wallet with thousand of address attached created with RPC method 'getnewaddress'. I would like to have a recovery process for this ...
albaokilml's user avatar
0 votes
1 answer
38 views

bitcoin rpc submitblock merkle root + raw tx (bad-txnmrklroot)

I wanted to test the submitblock rpc call in regtest but I seem to have some issues with the transactions I try to submit. I have the following raw transactions: ...
FearXenon's user avatar
1 vote
1 answer
58 views

Get utxos for an address without rescanning the whole chain

In order to gather the utxos for an address importdescriptors will rescan the blockchain. Is there another way to get all the utxos for an address / descriptor without having to rescan the block chain?...
Topman's user avatar
  • 11
1 vote
1 answer
51 views

Understanding Bitcoin Blockchain Storage and the Usage of Merkle Trees [closed]

I'm currently learning about the Bitcoin blockchain. I've come across the concept of Merkle trees in the context of Bitcoin. I understand that Merkle trees are used to verify the integrity of the data,...
mlibre's user avatar
  • 133
0 votes
0 answers
46 views

bitcoin-cli getrawtransaction not working as expected?

So I'm trying to set up a full bitcoin node. I compiled bitcoin core fine and I created a config file. I want to download the entire history of the blockchain, so I created a bitcoin.conf file in my ./...
Jonathan Gafar's user avatar
0 votes
1 answer
67 views

401 Unauthorized when try to connect to bitcoin-core using curl

The problem: I try to run a curl request but get 401 Unauthorized error. curl --user testuser --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method&...
Putnik's user avatar
  • 63
0 votes
1 answer
42 views

Generate regtest blocks with Bitcoin-Qt

I'm prepping for a tabconf workshop and trying to make the simplest uX for workshop attendees. Using bitcoincore.org for binaries: The Mac dmg doesn't come with a bitcoin-cli like with Linux. It does ...
Michael Tidwell's user avatar
0 votes
1 answer
49 views

Bitcoin core: How to get transactions data having block?

There's a verbose output of the very first block info: bitcoin-cli getblock 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 2 { "hash": "...
Putnik's user avatar
  • 63
2 votes
1 answer
84 views

How can I look at the genesis block raw txn?

If I try to look at the txn in the genesis block, I get: root@0eef0ed7601c:/home/bitcoin# bitcoin-cli getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b error code: -5 ...
patrick's user avatar
  • 223
0 votes
0 answers
307 views

timeout on transient error: Could not connect to the server 127.0.0.1:8332

I finished installing Bitcoin on a raspberry pi a couple days ago and have a problem. Everything worked fine yesterday (I was able to run bitcoin-cli commands just fine) but now whenever I run "...
NeonTears's user avatar
0 votes
1 answer
56 views

bitcoin-cli: Get transaction count of wallet without listtransactions

I am trying to find a way to get the number of transactions returned from the JSONRPC interface without relying on listtransactions. The reason for this is that if the wallet has too many transactions ...
Zenul_Abidin's user avatar
2 votes
0 answers
42 views

Is there a way to schedule bandwidth-intensive functions of bitcoind?

Some Internet service providers have different pricing at different hours. Is it possible to limit some functions of bitcoind to specific time ranges? ...especially initial block download (IBD) and/or ...
Robert Dickinson's user avatar
1 vote
0 answers
46 views

walletprocesspsbt rpc not signing psbt tx

After extensive regtest testing I've been unable to reproduce this issue. This is a gist to regtest psbt commands that do work. https://gist.github.com/miketwenty1/ecb9acdbca858878f1856b75493fef4c ...
Michael Tidwell's user avatar
0 votes
0 answers
67 views

Bitcoin core cli importdescriptors (miniscript)

I created a miniscript descriptor and wanted to see how it looked like in core(testnet). So i ran: importdescriptors "[{"desc": "wsh(or_d(pk([658b6bd9/44'/1'/0'/0]...
Jim Quick's user avatar
2 votes
1 answer
111 views

Issue listing regtest wallets

Questions: Should it be assumed if you're testing with bitcoincore you should always have a separate datadir per version/bin? Based on weirdness below, (not being able to list regtest wallets), does ...
Michael Tidwell's user avatar
0 votes
1 answer
66 views

How Can I find sat/vb of a given Txid using bitcoin-cli

I want to find the sat/vb of a tx in a mempool. I am using bitcoin-cli to do this. cmd = ['bitcoin-cli', 'getrawtransaction', txid, "true"] This is the command that I extrect the info of the ...
Gencehan ARPAÇAY's user avatar
1 vote
1 answer
107 views

bitcoin-cli WIF from xpriv, descriptor outputs clarity

Questions Is it possible for the bitcoin-cli command to extract WIFs from a ranged descriptor with a derivation path? If a descriptor is ranged it must have a xpriv key? If a descriptor has a xpriv ...
Michael Tidwell's user avatar
0 votes
1 answer
55 views

How can I get the txids of memblock that will be confirmed in the next blcok using bitcoin-cli?

I want to get the txids of the (mem-pool 0 I mean the mempool block that will next to be confirmed) using bitcoin-cli. Basicly I want to get the txids in https://mempool.space/tr/mempool-block/0 this ...
Gencehan ARPAÇAY's user avatar
3 votes
1 answer
157 views

Sweep Taproot and native Segwit v0 coins in a single transaction using Bitcoin Core wallet

My goal Learn how to send an imported tr(wif) and wpkh() utxo in the same transaction. What I've tried I imported a WIF utxo containing a v1 segwit utxo. bitcoin-cli importdescriptors '[{"desc&...
Michael Tidwell's user avatar
3 votes
2 answers
408 views

How to increase fee of existing transaction with bitcoin-cli

I have broadcast a trasnaction from my bitcoincli wallet using this command: ./bitcoin-cli sendtoaddress ADDRESSGOESHERE 0.1 The problem is, it has set the fee to a very low amount by default. After ...
lipp's user avatar
  • 31
2 votes
1 answer
53 views

json parsing error with createrawtransaction with bitcoin-cli in regtest

I have been trying to use getrawtransaction to work with raw transactions in regtest and I have not been able to get it to parse correctly. the general format I am using is this. I am running this ...
lookingforhelp's user avatar
3 votes
1 answer
143 views

Bitcoin Core v23 using more inputs than necessary costing more fees

Bitcoin core v23 has been handling input selection just fine until the feeRate (in kvb) was set to "0.0005". It began aggressively consolidating inputs costing me more in paying for ...
Sky Tech's user avatar
5 votes
1 answer
147 views

Testing pruning logic with bitcoind

I'd like to test pruning logic using bitcoind in regtest mode, however, given the nature of regtest, blocks are rather empty (if not fully). Is there any way of easily generating full blocks so the ...
sr_gi's user avatar
  • 3,192
1 vote
0 answers
67 views

New resync after a complete reindex

After an error with LevelDB (corrupted) I did a reindex and after that bitcoind automatically start a new synchronization. This seems much faster some times, it started from genesis and in 1 hour it ...
nico's user avatar
  • 89
1 vote
2 answers
153 views

Retrieve address corresponding to pubkey using bitcoin-cli/RPC

We are using jgarzik/python-bitcoinrpc and in some cases curl to retrieve data from bitcoin core using RPC. However, for some txns where pubkey is used, bitcoin-cli/rpc gives no address in ...
curious's user avatar
  • 43
0 votes
1 answer
66 views

Mainnet node sync really slowly with 12 tb seagate external hdd says data rate is 6gb/s

Hi my node is syncing really slowly I have the datadir in an external hard drive connected through usb. Says the data rate for this seagate 12TB is 6Gb/s but the syncing is slow in comparison to when ...
meanthatmuchtoyou's user avatar
-1 votes
1 answer
54 views

How to Sign Bitcoin Transaction from two or more children wallet in HD wallet

How can I handle a situation where I have bitcoin on two or more different wallets with a single phrase, how can I sign the two transactions to a friend. Example: I have 2BTC in a wallet address that ...
Topman's user avatar
  • 11
2 votes
1 answer
228 views

use mnemonic in bitcoin rpc using bitcoin cli with none legacy wallets

I have my 12 words (mnemonic) and I know that I can get zpriv, xpriv, private keys and anything from that. but when I try to import them to my bitcoin rpc, I can only import them into legacy wallets ...
Godfather's user avatar
  • 121
0 votes
0 answers
161 views

bitcoin-cli listunspent returns empty list

I'm running bitcoind bitcoind -regtest and want to send BTC to bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45 segwit address. Why listunspent returns empty list after sending somebtc to segwit address? ...
att's user avatar
  • 123
3 votes
0 answers
214 views

How to calculate the purging low-fee for a node with the default mempool size?

I'm running a full node with a mempool size set to 2 GB. Default mempool size is 300 MB. At the moment (block hight 785,095) the mempool size is around 344 MB. Running rpc command bitcoin-cli ...
deyw's user avatar
  • 478
0 votes
1 answer
123 views

Why is `getrawtransaction` not working?

bitcoin-cli getrawtransaction 0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2 error code: -5 error message: No such mempool transaction. Use -txindex or provide a block hash to enable ...
Indul's user avatar
  • 1
2 votes
0 answers
85 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 ...
wazint's user avatar
  • 21
1 vote
1 answer
224 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?
Ali's user avatar
  • 71
1 vote
1 answer
72 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. ...
Ali's user avatar
  • 71
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 ...
user140323's user avatar
4 votes
1 answer
202 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 ...
D.J. Elkind's user avatar
0 votes
1 answer
139 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 ...
greencappybara's user avatar
0 votes
0 answers
60 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 ...
Dzanvu's user avatar
  • 101
1 vote
0 answers
67 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 ...
vnprc's user avatar
  • 385
2 votes
1 answer
148 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 ...
Marco's user avatar
  • 373
0 votes
1 answer
323 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 ...
BSH180_44's user avatar
1 vote
1 answer
749 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 ...
Wieland Gmeiner's user avatar
0 votes
0 answers
249 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 ...
bitcronny's user avatar
2 votes
1 answer
253 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 ...
kcalvinalvin's user avatar
4 votes
1 answer
218 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 ...
raphjaph's user avatar
2 votes
1 answer
537 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 ...
FractalEncrypt's user avatar

1
2 3 4 5
9