Questions tagged [bitcoin-cli]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
40 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
31 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
20 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
50 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
30 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. ...
2
votes
1answer
28 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 ...
3
votes
1answer
126 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?
2
votes
0answers
91 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
35 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?
1
vote
1answer
48 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
30 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 ...
4
votes
1answer
70 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
40 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
229 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
30 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
126 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
632 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
30 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
34 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
36 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
411 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
54 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
699 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
87 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
79 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
150 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
76 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
66 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
73 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
141 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
329 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
89 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
35 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
379 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
74 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
67 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
320 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
vote
0answers
159 views

Getting "N5boost10filesystem16filesystem_errorE" error when running bitcoin-cli

Backstory I'm running Bitcoin Core 0.20.1 on a Raspberry Pi 4 (running Raspberry Pi OS standard). It's just a standard install of Bitcoin Core, I built from source and installed into /home/pi/.bitcoin ...
0
votes
0answers
13 views

Transactions with Bitcoin Mockup/Method

As I haven't got many resources I am unable to test this method however before I spend the time investing in servers and such, I would like to show my idea as to how I will be handling a payments ...
0
votes
0answers
28 views

Bitcoin-cli transaction viewing

I am attempting to create my own Bitcoin API for a website I have been building over the recent years and I need some sort of transaction system to handle payments with Bitcoin. I currently own a ...
1
vote
1answer
122 views

Permission denied when attempting to backup wallet using backupwallet

When I call bitcoin@raspberrypi:~ $ bitcoin-cli backupwallet "backup.dat", I get the following error: error code: -4 error message: Error: Wallet backup failed! ~/.bitcoin/debug.log shows ...

1
2 3 4 5
7