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
32 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
27 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
27 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
60 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
96 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
42 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
41 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
37 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
52 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
87 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
52 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
81 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
51 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
135 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
245 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
40 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
136 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
140 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,087
1 vote
0 answers
53 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
140 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
53 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
48 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 ...
Raphael's user avatar
2 votes
1 answer
179 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
114 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
169 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
  • 416
0 votes
1 answer
99 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
75 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
173 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
61 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
175 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
105 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
52 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
57 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
  • 365
2 votes
1 answer
147 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
  • 371
0 votes
1 answer
245 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
536 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
204 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
217 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
177 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
449 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 vote
1 answer
86 views

Can CLN be configured to use a bitcoin node running on another machine?

CLN 0.12.1 I have bitcoin core running on one machine (Debian 11) and would like set up CLN (C-Lightning) on another machine (Ubuntu 22.04) on the same network. My first test was to use the --bitcoin-....
Zephyrus's user avatar
  • 536
0 votes
1 answer
173 views

How do I get Bitcoin Core's addrindex to work?

I'm looking to create an index on addresses in my bitcoin full node in order to fetch the balances of a list of addresses from the blockchain for an academic project without using the public explorers....
Helmi's user avatar
  • 1
0 votes
0 answers
349 views

I can not connect through RPC port bitcoind

I have set up bitcoind, and I am able to run bitcoin-cli commands, I am also able to make request through RPC. curl --user username:password --data-binary '{"jsonrpc": "1.0", "...
Istiaque Ahmed's user avatar
1 vote
1 answer
37 views

How to check NODE type in Bitcoin?

There is a Bitcoin node in my Lab, how can I check it is a Full node or not? there is any command to check node type?
Istiaque Ahmed's user avatar
0 votes
0 answers
27 views

Need in my Bitcoin client wallets to restore

It's been a very very long time and I need a refresher on how I get into my Bitcoin client wallet I have the seed phase to restore it I do know to do it offline to cash out some. I mined on the ...
Pamela Mundy's user avatar
1 vote
1 answer
138 views

Is there any way to get my peer nodes‘ peer nodes?

I can use bitcoin-cli getpeerinfo to get the peer nodes' information. Is there some way to further get the peer nodes' peer nodes, i.e. the 2-order neighbor node?
noob's user avatar
  • 97
0 votes
0 answers
51 views

Setup bitcoind and be able to make a call to GetBlockTemplate

I have been able to get bitcoind started by giving it the right data directory and configuration file. I downloaded and ran rpcauth.py from https://github.com/bitcoin/bitcoin/blob/master/share/...
MarkRLV's user avatar
4 votes
1 answer
952 views

How do I create a taproot multisig address requiring 21 of 210 keys to spend?

I understand that prior to taproot activation, m-of-n multisig addresses had an "n" max limit of 20 keys. I also saw the 998/999 tapscript multisig transaction that recently caused issues ...
FractalEncrypt's user avatar
0 votes
2 answers
200 views

hdseed, hdseed, and bitcoin-qt

in bitcoincore, what is the use of hdseed please? can we restore a wallet with it? and above all an address with bitcoin on it thank you ! for IT
BTCStackEforCarl815's user avatar

1
2 3 4 5
9