Skip to main content

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
1 vote
0 answers
39 views

How to spend a multisig descriptor wallet transaction with bitcoin-cli?

I am looking for the correct way to spend multisig outputs with descriptor wallet bitcoin-cli. In regtest, I successfully created a funding transaction tx1 with the following outputs: out:0 sh(multi(1,...
Alec Matusis's user avatar
1 vote
1 answer
49 views

Why does walletprocesspsbt finalize the psbt but not return the transaction hex?

I am currently using walletprocesspsbt to optionally finalize a psbt and fill in bip32derivs if not signed already. The psbt is fully signed and finalized but I have to make an additional rpc command ...
Fontaine's user avatar
  • 522
1 vote
1 answer
30 views

"Error parsing JSON": how to use `testmempoolaccept` on Windows?

The documentation for bitcoin-cli testmempoolaccept suggests bitcoin-cli testmempoolaccept '["0100000001abcd..."]' but that throws Error parsing JSON. I have tried numerous variations of ...
Captain Fantastic's user avatar
0 votes
1 answer
39 views

How do I get Bitcoin Core's estimated confirmation time for a given transaction?

What RPC command can I run with Bitcoin Core (bitcoin-cli) in order to get a transaction's estimated confirmation time?
Geremia's user avatar
  • 4,704
2 votes
0 answers
39 views

How to claim funds in a multisig address from a money pool psbt?

Mostly followed this guide on how to create a psbt where multiple users pool money together. Everything is done in regtest. The gist of what I did is as follows: Created 2 different descriptor ...
Psi's user avatar
  • 21
0 votes
0 answers
27 views

importing data to a wallet as not watch-only

I am trying to use private keys, addresses, and public addresses I generated myself. (for educational purpose). I am working with bitcoin-cli by inserting the inputs I've generated myself. (in CMD) ...
 solaxab's user avatar
1 vote
0 answers
25 views

Can mediantime be used as a proxy for expected time of the most recently mined block?

I'm using Bitcoin Core CLI to get block info: .\bitcoin-cli.exe getblockchaininfo Among other things, this returns two items: "time": 1713464903, "mediantime": 1713461780, I ...
Hannah Vernon's user avatar
  • 1,559
-1 votes
1 answer
39 views

bitcoin block chain - database - how to request / how to get status of an object? [NOOB]

I wonder about the bitcoin and blockchain. I think I have understand the purpose of a blockchain. (security/decentralisation) Ok we save transaction on blocks validate thanks to the proof of work. But ...
Marcel kobain's user avatar
0 votes
1 answer
69 views

Is there a method in the Bitcoin RPC API to view all transaction records of a given address?

I used the listtransactions method to get transaction records, but it returned an empty collection. Is it a configuration file problem or other reasons?
muxi's user avatar
  • 11
2 votes
1 answer
292 views

Moving the entire directory to new location for Bitcoin Core CLI

I use Bitcoin CLI and not the QT one, when syncing i used a external SSD to store blocksdata in SSD, obviously noob me didnt know of datadir function Now my Chainstate, txindex are in roaming folder ...
123demigod's user avatar
1 vote
2 answers
107 views

How to use Bitcoin Core GUI to view all transaction records of a certain address?

I want to implement this function: given a Bitcoin address, what should I do to view all transaction records of this address?
muxi's user avatar
  • 11
0 votes
0 answers
29 views

Bitcoin Transaction

How to code a Bitcoin transaction, including the address creation feature in Rust ? Which crates we have to use? Any blogs or resources would be very helpful
lladane's user avatar
  • 21
1 vote
0 answers
17 views

How do delete wallet with blank walletname?

I seem to have created a blank wallet at some point that looks like this: bitcoin-cli listwallets [ "", "mainwallet" ] How can I delete the "" wallet? It doesn't ...
inersha's user avatar
  • 3,185
1 vote
2 answers
799 views

Recover bitcoin from wallet.dat from 2012 (probably not backed up properly)

Ok. So I have a bitcoin core wallet from around August, 2012. I don't think I backed it up "properly" in that I just copied the wallet.dat file, zipped it and stuck it in cloud storage. I ...
Jon Grah's user avatar
  • 131
0 votes
1 answer
136 views

Mempool not accepting transactions: 'reject-reason': 'insufficient fee'

I'm using Bitcoin Core, and for some reason, it doesn't want to accept transactions when I already have other transactions in the mempool, even if those transactions are using different UTxOs and they ...
Nahum Maurice's user avatar
0 votes
1 answer
58 views

Raw Transaction decoding fails on signet but decodes fine in BlockCypher decoder

Type of transaction: p2wpkh transaction creating a multisig (p2wsh) on signet. Error:TX must have atleast one inputs. Output on online decoder { "addresses": [ "...
Prabhat Verma's user avatar
0 votes
4 answers
74 views

Is it bad for a Bitcoin regtest address to have 1 as it's prefix

From the link below i read that it is dangerous for a Bitcoin regtest address to have 1 as it's prefix can someone explain why The link : Address starting with 2, what mode I am in?
Dev Tenji's user avatar
0 votes
1 answer
67 views

Create transaction and so on

Please explain to me what should be the procedure for working with a bitcoin-cli / RPC wallet. For example: Create a wallet Get a new address Sending BTC: creating a transaction, signing a ...
Valentin Borisenko's user avatar
0 votes
1 answer
117 views

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server?

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server? That I can use it with bitcoind and bitcoind-cli and RPC (https://en.bitcoin.it/wiki/Original_Bitcoin_client/...
Valentin Borisenko's user avatar
0 votes
0 answers
76 views

Tx Pending. CPFP, BumpFee or do nothing?

I have a stuck/pending tx - 14 hours. Its marked as RBF. I'm a bit below the median tx fee. (currently 67 sat/vB vs ~96 sat/vB). BitcoinFees seems to indicate I should get confirmed within 24 hours. I'...
Simon Woods's user avatar
4 votes
1 answer
87 views

CLN config file unrecognized options

I'm trying to get CLN connected to a running Bitcoin Core node, but it is telling me I have unrecognized options in my config file. I thought the problem was that the data directory for the bitcoin ...
Zephyrus's user avatar
  • 782
1 vote
1 answer
82 views

How to make RBF with changed output address per CLI?

Please, can anyone explain to me how to make an RBF with changing the output address exactly? Which commands should I use for that? I tried to use the 'send' command to send the same amount with a ...
miso's user avatar
  • 23
0 votes
1 answer
356 views

Bitcoin-cli does not connect to bitcoind and cant execute commands no matter what

I have: server=1 daemon=1 in the config, bitcoind running as user as well as bitcoin-cli, no special config or anything - when I try to use bitcoin-cli it wont connect to 127.0.0.1:8332, bitcoind is ...
BobbyJones's user avatar
1 vote
0 answers
104 views

Cannot import multisignature descriptor in Bitcoin Core

I created a multisignature address in regtest: ADDR_1=`bitcoin-cli getnewaddress "" "bech32"` ADDR_2=`bitcoin-cli getnewaddress "" "bech32"` PB1=$(bitcoin-cli -...
monkeyUser's user avatar
1 vote
1 answer
116 views

Wallet transaction not confirming in blocksonly mode

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). ...
Nikolai Kushpela'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
57 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
222 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
141 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
84 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
128 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
117 views

Understanding Bitcoin - Usage of Merkle Trees

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
93 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
224 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
178 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
217 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
3 votes
1 answer
197 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
  • 233
0 votes
0 answers
1k 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
99 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
47 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
85 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
2 votes
1 answer
271 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
125 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
210 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
91 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
234 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
853 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
113 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
166 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
173 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,220

1
2 3 4 5
9