Questions tagged [bitcoin-cli]

should be used for questions related to the Bitcoin Core RPC client

Filter by
Sorted by
Tagged with
2
votes
2answers
133 views

Bitcoin-cli responding but not curl

According to the bitcoin documentation I can make curl calls to my bitcoin node. However, whenever I run a curl command like the following (as per the docs): curl --data-binary '{"jsonrpc": &...
0
votes
1answer
41 views

what is the difference in bitcoin core between ? getblocktemplate or generatetoaddress?

What is the difference between bitcoin-cli getblocktemplate '{"rules": ["segwit"]}' and bitcoin-cli generatetoaddress 11 "myaddress" as I understand both are for mining?...
0
votes
2answers
46 views

How do I set up bitcoind to track all address balances?

Bitcoind only stores information about addresses that you've added. How do I make it store balance and transaction information for all addresses so that given any address I've never seen before, I can ...
0
votes
1answer
20 views

How can I -abort ./bitcoind -reindex-chainstate?

I made files re-accessible. Now we could return to a later, already synchronized state with the files. I tried to put ./bitcoind -reindex-chainstate=0, also in a bitcoin.conf, also directly calling ...
0
votes
1answer
63 views

determining the address a transaction comes from

Currently im trying to build an explorer and im stuck on the block/listing transactions. Currently this is my code. foreach($info['tx'] AS $key => $value){ $txinfo = callBTC("...
0
votes
1answer
40 views

Get raw transaction from tx id without txindex=1

I'm trying to get the raw transaction hex string of a transaction that I know the id from. I would like to do that without using txindex=1. As I assume the transaction is unspent (and confirmed) I'm ...
0
votes
1answer
25 views

Why is the decription of listreceivedbyaddress misleading and contradictory to what says its name?

From bitcoin-cli --testnet help listreceivedbyaddress: listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" ) List balances by receiving address. The issue is ...
0
votes
1answer
34 views

How do I pass optional arguments in JSON to bitcoin-cli createwallet without using curl?

I need to create an encrypted blank wallet, and for this purpose I need to furnish bitcoin-cli --testnet createwallet testwallet with two more optional arguments. Let the passphrase be "...
0
votes
1answer
57 views

Why .bitcoin is at /root in Arch/Manjaro Linux?

I've installed bitcoin-core and downloaded the blockchain in Ubuntu. Now that I have switched to Manjaro Linux and installed bitcoin-core again, It creates the .bitcoin directory in /root/.bitcoin/ ...
0
votes
0answers
31 views

How to merge the datadir with .bitcoin directory?

I changed the path of datadir in bitcoin.conf from .bitcoin directory to somewhere else. Now that I need to backup my blockchain data, I want to have both .bitcoin and blockchain data together. ...
1
vote
1answer
39 views

How to get peer nodes information from bitcoin CLI?

I saw a feature called Node Window in the bitcoin GUI environment, that shows information about peer nodes, like User-Agent, Received (Data), Sent (Data), Ip, etc. How do I can get such information ...
2
votes
1answer
186 views

How to make a taproot transaction with bitcoin-cli?

Can you give a simple step-by-step example for a taproot transaction with bitcoin-cli on Testnet?
1
vote
0answers
104 views

Low inbound connections and fixed getnetworkinfo score at 4

I spent hours researching for possible solutions, but couldn't find any. I set up my RPi4 bitcoin node about a month ago. It communicates through Tor (see torrc content). SOCKSPort 9050 Log notice ...
1
vote
0answers
40 views

Add inputs and outputs to a transaction signed with sighash SINGLE | ANYONECANPAY

I created a transaction with one input and one output, and signed it using sighash SINGLE | ANYONECANPAY. Can I add further inputs and outputs with another wallet using bitcoin-cli?
0
votes
1answer
72 views

Creating a new address in a blank wallet

I'm testing v0.21.1 on linux. I create a new blank wallet with: bitcoin-cli createwallet "my_wallet" false true But when I try to create a new address with bitcoin-cli getnewaddress I get ...
0
votes
1answer
33 views

Does electrum wallet "sit on top of" bitcoin-cli?

Does electrum wallet "sit on top of" bitcoin-cli? Or is it an abstraction of some other software? I have already learned that Electrum's gui is not a wrap around their cli and there are some ...
3
votes
1answer
93 views

How do I get the private key of an address in descriptor wallets? How to dumpprivkey?

When I run dumpprivkey from Bitcoin Core 0.21.1. I get the following error message: error code: -4 error message: This type of wallet does not support this command I came across achow's explanation ...
0
votes
1answer
44 views

listtransactions weird offset workflow

I need to extract last wallet transaction. But seems listtransaction has some wrong logic. When I perform this function listtransactions '*' 50 9 it just return me first records not last. In my case ...
0
votes
1answer
41 views

How do Blockchain Explorers lookup wallets? [Balance]

How do Blockchain Explorers lookup wallet balances? Im trying to make my own explorer. For example Bitcoin-cli does not have a method (function) to lookup a wallets balance. listtransactions does not ...
1
vote
0answers
11 views

locktime in getrawtransaction method in bitcoin-cli

what is different between Time, BlockTime and Locktime in " Getrawtransaction " method in bitcoin CLI? Actually I want to know that is locktime. Please help me :)
1
vote
2answers
245 views

fundrawtransaction - what is it?

I find on Internet interested article. How I understand the raw transaction can be created simpler without fundrawtransaction. bitcoin-cli listunspent [misconf=1] [max_number_confirmation=99999999] ''...
0
votes
0answers
31 views

Need to configure Bitcoin RPC bitcoin.conf for production ecosystem

hello I'm building a little exchange website and need a simple solution to integrate via api, I'm looking for something that allows bitcoin payments to be sent to bitcoin addresses for users who will ...
0
votes
1answer
16 views

Possible To --enable-wallet After Syncronization With Blockahin?

I am running bitcoind from the command line (--without-gui) and my system apparently does not have the correct Berkley DB version (4.8+). Therefore, I chose to run the program without the wallet ...
1
vote
1answer
140 views

How to get info for public address from bitcoin-cli + local db? (Can it be done without creating a wallet?)

I just started running my own full node. IBD is finished, and I'm now learning how to use bitcoin-cli. First I would like to extract all the available information for one or more public addresses ...
3
votes
1answer
797 views

Setting up lightning with bitcoin-core

I have some questions about bitcoin-core and lightning-network-daemon. I have succesfully set up a bitcoin node running on Ubuntu Server 20.04 by following this tutorial: https://bitcoin.org/en/full-...
0
votes
0answers
32 views

bitcoin-cli sendmany but not shown explorer

I sent bitcoin to 93 people with sendmany function. It made a tx id = "abc7f3f878fe0fff59bd295ea1a7f86c4a13f1ea8bbd3eb52629f040d06069b4" but I couldn't show in bitcoin explorer. I ran ...
0
votes
0answers
22 views

How do I view the list of all existing Unspent Transaction Outputs, not just for my wallet, with Bitcoin Core utilities or any other software? [duplicate]

I'm preparing data for a research/analysis, and I'm a bit new to bitcoin-cli. I need to obtain data for the chart like this: https://www.blockchain.com/charts/utxo-count , with only difference that it ...
0
votes
0answers
35 views

How do I get the signature and how do I apply it onto my transaction using bitcoin-cli?

Guide link: https://comit.network/blog/2018/06/23/connect-all-the-blockchains/ For context I'm following a guide I found online about how to create a HTLC (Hash-time lock contract) and have it work ...
1
vote
1answer
39 views

Is it possible to keep bitcoind running with the blockchain synced up to only a certain height?

I am currently using bitcoind to do some transaction analysis on a small part of the blockchain. However, after the local copy of the blockchain reaches the -stopatheight value, it quits. Is there a ...
0
votes
1answer
462 views

Why I cant connect bitcoin-cli -regtest

I need generate satoshi in my bitcoin how test and i need use the -tesnet or -regtest, and when I press the command in my shell: bitcoind -regtest -daemon return: Bitcoin Core starting bitcoin-cli -...
0
votes
1answer
58 views

Problem with bitcoin-cli -datadir flag

I moved my blockchain directory, including bitcoin.conf, to an external drive D:\Bitcoin. Bitcoin Core starts and runs normally using this path, however when I try to use the command line interface, ...
0
votes
1answer
834 views

How to create descriptor watch-only wallet with bitcoin-cli in Bitcoin Core 0.21?

Using only command line (no GUI), how can I create watch only wallet based on descriptor and get first unused address? This is the descriptor: "wpkh([00000000/84h/0h/0h]xpub6DP....xyz/0/*)#...
6
votes
1answer
94 views

Bitcoin.conf setting for CPFP - how can I enable longer 'chains' of unconfirmed transactions?

I often receive an -32700 'Insufficient Funds' error when attempting to create 'child pays for parent' (CPFP) transactions using unconfirmed change output. This can be problematic since it can prevent ...
2
votes
2answers
82 views

Setting the fee rate on regtest, or, quickly generating full blocks

I'm setting up some automated testing for a lightning wallet. At the heart of my tests is a bitcoind instance running in regtest mode. I need to be able to set the fee rate - both the fee rate ...
2
votes
1answer
152 views

Is there a way to give `bitcoin-cli` a different default conf directory instead of specifying it each time?

I have changed the configuration directory for bitcoind. However when I make a bitcion-cli request: bitcoin-cli getblockcount I get an error about RPC credentials using ~/.bitcoin/bitcoin/conf So for ...
0
votes
1answer
77 views

Why don't we have a help for Bitcoin Core CLI options in the same way as we do for CLI commands?

There is detailed help for bitcoin-cli commands using for example: ./src/bitcoin-cli getconnectioncount help. However, there isn't generally detailed help for bitcoin-cli options such as ./src/bitcoin-...
0
votes
1answer
71 views

Set bitcoin fee lower than minimum estimatesmartfee value

Currently when I broadcast transactions, I seem to be unable to do so with a fee below ~10^-4 bitcoin (~$2 at current exchange rate). Any 'conftarget' value between approximately 100 - 1000 yields the ...
2
votes
1answer
83 views

How do I check if a particular address is 'owned' by a loaded wallet in Bitcoin Core?

I'm interested in knowing if there is an rpc method to determine whether or not an address was generated, and thus is owned by, a loaded Bitcoin Core wallet. I have a few addresses that I generated a ...
1
vote
0answers
78 views

listreceivedbyaddress does not return any information about change addresses, is there any alternative?

listreceivedbyaddress does not return info about change addresses (m/84'/1'/0'/1/*) , only about receiving addresses (m/84'/1'/0'/0/*). I've found out that getreceivedbyaddress "address" ...
1
vote
1answer
35 views

Where are getnetworkinfo localservicesnames explained?

Bitcoin-cli getnetworkinfo returns a list of human readable localservicesnames. Where can one find more info about them?
1
vote
1answer
152 views

Bitcoin-cli 0.19.1 Wallet not Sending from Addresses with Closest Amount?

I have a weird issue that I thought was fixed a few years back with Bitcoin wallet to reduce fees. I guess not, or I am missing something... My wallet received a transaction for the amount of 0....
2
votes
1answer
357 views

How to convert PSBT transaction (base64) to raw/serialized (hex) transaction?

Bitcoin Core's CLI has a converttopsbt command used to convert from raw transaction to PSBT transaction but how is it possible to convert from PSBT transaction to raw transaction using Bitcoin Core (...
1
vote
1answer
31 views

What RPCs can I use to transform an address to a paying script? [closed]

What RPC(s) can I use to transform an address to a paying script (0014<addr>)?
0
votes
1answer
101 views

-regtest generate 101 not working

when I type bitcoin-cli -regtest generate 101 in the powershell it gives me this error: PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101 error code: -32601 error message: I ...
1
vote
0answers
39 views

CLI tool to sign a transaction using a private key in an offline computer

My Problem Consider an offline computer that has a list of private keys for bitcoin addresses. The computer has some flavor of Linux installed on it, so it can run common CLI tools and Python scripts. ...
2
votes
1answer
393 views

How to generate valid BTC address to withdraw coins to

I set up bitcoind, and the complete blockchain is synced. I created a wallet, and I loaded the wallet. How can I generate an address to deposit BTC to? I tried bitcoin-cli getnewaddress and I get this ...
1
vote
0answers
79 views

Can a 0 confirmation Bitcoin Core change output be spent?

I have a Bitcoin Core wallet which has a utxo which I spent from, in a transaction where around 1% was sent to an external wallet address, with the ~99% change output remaining in the wallet, sent to ...
0
votes
0answers
26 views

Allowip block local cli command?

I am new to bitcoin node, recently I tried to running my node with rpcbind and rpcallowip, with the setting of rpcbind and rpcallowip, I am not able to stop the node with locall cli... error: server ...
0
votes
1answer
73 views

Difference between createmultisig and addmultisigaddress on v 0.20.0?

What is difference between createmultisig and addmultisigaddress? I ran 2 methods for 2 same bitcoin address on bitcoin-cli but gives different addresses as multisig to me. the results are as follows: ...
0
votes
1answer
402 views

RPC getnewaddress error on v 0.20.0

I would like to new address generate with this command bitcoin-cli -testnet getnewaddress "adr1" "p2sh-segwit" but I get this msg: error message: Wallet file not specified (must ...

1
2 3 4 5
7