Questions tagged [bitcoin-cli]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
34 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
19 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
12 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
12 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
22 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
38 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 ...
2
votes
1answer
22 views

Difference between bitcoin-cli getnetworkinfo version and bitcoind --version

I tried to upgrade bitcoin core from 0.18.0 to 0.20.0. When I ask for the version through bitcoind bitcoind --version it prints Bitcoin Core version v0.20.0 but if I ask for the version through ...
2
votes
2answers
68 views

Problem making multisig PSBT on walletcreatefundedpsbt

I'm fighting with PSBT to do a 2: 2 multisig with bitcoin-cli on testnet. Those are the steps I follow: Create a multisig with bitcoin-cli createmultisig 2 "["pubkey1", "pubkey2&...
1
vote
1answer
43 views

Change difficulty using bitcoin-cli/bitcoind in regtest mode

Is there an RPC command which would allow me to generate blocks under a given difficulty? For instance, I would like to do something like this: bitcoind -daemon -regtest bitcoin-cli -regtest ...
2
votes
2answers
39 views

Stopping bitcoind on mac

One of my kids while learning more about bitcoin started bitcoind on my mac. Now I am unable to stop it. In my activity monitor, it shows a process named "bitcoind". I have stopped that ...
0
votes
1answer
21 views

Importaddress and conf

I'm wondering if its possible to add imported addresses into the bitcoin conf file. So, rather than calling the cli with importaddress, I would add the address to the conf file, with say, ...
1
vote
2answers
57 views

How to extract all the bitcoin addresses with bitcoin-cli?

I am trying to get all existing addresses on the bitcoin blockchain with bitcoin-cli. It seems that I can get addresses from vout that are of type "pubkeyhash". If the type of vout is "...
1
vote
1answer
59 views

Bitcoin Core private key import

I would like to import the private keys from a multisig paper wallet to Bitcoin Core. My aim is to convert the paper wallet to an electronic wallet and to be able to export the corresponding wallet....
1
vote
1answer
33 views

How is a multisig transaction transferred between multiple signers?

I'm trying to learn more about doing multisig transactions. The examples I've seen show the signing of the transaction with 2-of-3, or 3-of-3, where the signatures are added, essentially, at the same ...
2
votes
1answer
40 views

Does testmempoolaccept check all possible rejection rules?

Is there any rejection rule that testmempoolaccept will not check, or is it safe to assume that if it passes testmempoolaccept validation it will be at least broadcast? Mostly concerned about complex ...
1
vote
2answers
40 views

How to raise the bad-txns-vout-negative error?

I wanted to replicate the bad-txns-vout-negative error scenario. I tried the following but getting 'Amount out of range' only: Here is the command i tried: bitcoin-cli -named createrawtransaction ...
0
votes
1answer
20 views

signmessage and verifymessage CLI commands not accepting Address from getnewaddress?

I am trying the following commands on my v0.19.0.1 Core implementation: CLI signmessage $(CLI getnewaddress) <message> and the identical CLI signmessagewithprivkey $(bitcoin-cli dumpprivkey $(...
-1
votes
1answer
53 views

What can I expirement with BitcoinCore on my own?

I have a simple faculty assignment where I have to do some experiments with transactions or experiment with the Bitcoin protocol or maybe with wallet code. Work on that assignment shouldn't last more ...
0
votes
1answer
24 views

In bitcoin-cli getpeerinf call what does “-1” mean as a “synced_headers” or “synced_blocks” value?

Sometimes I see this in getpeerinfo: "synced_headers": -1, "synced_blocks": -1, sometimes it's only synced blocks at -1. What does that mean?
0
votes
1answer
33 views

How to know the destination address of a multisig?

Run this command: bitcoin-cli getrawtransaction 56214420a7c4dcc4832944298d169a75e93acf9721f00656b2ee0e4d194f9970 2 You will see the first vout is a multisig as follow: { "value": 0....
0
votes
0answers
23 views

Getting “Invalid or non-wallet transaction id” error on transactions definitely from wallet

Very recently (within the past hour), I've been unable to get transactions for wallet addresses. It also returns 0 received when running getreceivedbyaddress and entering an address that I've ...
0
votes
1answer
30 views

GetBlockChecked always returning genesis block?

currently I'm exploring Bitcoin source code and I tried to add custom function getblockvalue inside of blockchain.cpp. Purpose of function is to return sum of all transaction outputs inside of a ...
0
votes
1answer
53 views

Bitcoin V0.1 Not Connected

My Bitcoin V 0.1 says, "not connected" when I try to generate coins. I have ensured the port is connected through the firewall. Also, I have read that V 0.1.3 corrected this problem. However,...
0
votes
0answers
27 views

How to manually compute a descriptors checksum?

In the docs it says: The checksum for a descriptor without one can be computed using the getdescriptorinfo RPC. I would like to build a recovery tool where many descriptors are imported, calling ...
1
vote
1answer
51 views

How do I start -testnet in -deprecatedrpc to test a script?

I hope all is well during our COVID-19 pandemic. My question: How do I start "bitcoind -testnet" in "-deprecatedrpc=signtransaction" mode? Do I simply start it the same way without ...
1
vote
1answer
58 views

bitcoin-cli how to verify balance

I've read that addresses alone are a "confusing" way to think about "where" bitcoins "are". Nonetheless I was formerly (2018) able to correlate what I got from bitcoin-...
2
votes
1answer
38 views

What are best practices around toggling between multiple wallets in bitcoind?

I've created a couple wallets on Core to experiment with and want to dedicate one wallet as a live one. What is the best way to move between those wallets inside the command line? When I toggle to a ...
1
vote
1answer
52 views

Unable to make custom Bitcoin command

I'm writing a thesis on Bitcoin system and as a part of my assignment i have to explore Bitcoin-core source code. I 've downloaded the code, compiled it and manage to run it. However, I wanted to ...
0
votes
0answers
30 views

Problems Setting a Transaction Fee on a Per Transaction Basis Bitcoind

I've spent hours and hours trying to find a solution to this problem, with no success. Using Bitcoin Core on a Linux machine, so using bitcoin-cli to process commands back to the daemon. Here's what ...
2
votes
1answer
41 views

Is there any method to extract transactions for an bitcoin address which is not in my wallet using bitcoin core?

I have setup Bitcoin core and trying build an API to fetch all transactions under an address ( not in my wallet ). Bitcoin core RPC documention says that an address which is not in my wallet needs to ...
1
vote
1answer
35 views

listunspent rpc/cli command doesn't seem to list unspent unconfirmed transactions for watch-only addresses

I am unable to list unspent unconfirmed transactions for watch-only addresses. Once the transaction gets at least 1 confirmation it gets included in the returned result. This is the command I am ...
1
vote
1answer
111 views

Bitcoin core 0.19.1 RPC, 'sendtoaddress' not working!

Suppose this scenario: There are 2 wallets called wallet1 and wallet1 on the same node in testnet blockchain. wallet1 balance: 0.001 BTC wallet2 balance: 0 BTC I am trying to send 0.001 BTCs from ...
1
vote
1answer
61 views

Bitcoin Core 0.19.1 RPC “Move” command

I want to move some coins from a wallet to an other, so I found move command which is supported in Bitcoin Core 0.17.0 RPC but not in 0.19.1. Is any other command has been added instead of move?
0
votes
1answer
89 views

Send bitcoin with bitcoin core without syncing to network

I want to use bitcoin-core just for sending bitcoin from my address to another destination address. i don't need the huge history information of blockchain. In fact, I want to run a light-weight ...
0
votes
0answers
22 views

Parsing JSON in bitcoin-cli

I am learning the Bitcoin-cli, and when I run a command like getbalances, I get a JSON with "mine" and "watchonly". Is there a way i can only return the watchonly portion? My broader question is can I ...
0
votes
1answer
36 views

Will bitcoind import private keys for multi-sig descriptor with watch-only flag set to true?

I am importing a "warm" multi-sig quorum into bitcoind using importmulti like so: {"jsonrpc":"1.0","id":"curltest","method":"importmulti","params":[[{ "desc": "sh(multi(2,[eb2d2f9e/44'/1'/0']...
0
votes
1answer
52 views

bitcoin-cli decodescript wrong output

If I try to get info in genesis block, there is 1 tx: "scriptPubKey": { "asm": "...
0
votes
2answers
32 views

Regtest createmultisig Error: Invalid public Key?

As shown below, I generated 3 new addresses (Legacy I believe) in RegTest. I then try to create a multsig address from exactly these 3 addresses. What am I doing wrong, or is this unavailable in ...
0
votes
1answer
60 views

How can I get the bitcoin amount of an bitcoin address which doesn't belong to my wallet?

I am trying to make a query about a bitcoin address's btc amount. As I've read, getreceivedbyaddress rpc command can only be used for the addresses of a wallet that one owns and that command is ...
1
vote
1answer
108 views

How to reduce number of inputs in bitcoin transaction?

We have a bitcoin node running on a server which we use to generate addresses to receive small payments from the users. We receive tons of small payments daily right now and then we are using the same ...
1
vote
1answer
137 views

Why keys generated in Bitcoin Core mismatch that from online generators despite using the same seed?

I have the following problem in Bitcoin Core. With this command: echo carpet begin bacon master draft fortune food cherry cage axis vault clown | \ bx mnemonic-to-seed | \ bx hd-new -v 70615956 | \ ...
2
votes
1answer
39 views

How to add a second user with SSH access to my Ubuntu PC running Bitcoin Core?

I have a friend who is interested in learning Bitcoin CLI, and I told him I would look into giving him access to my node - in a non-destructive way - perhaps testnet only ? Totally trust this person, ...
2
votes
1answer
77 views

How To Get Master Fingerprint

say I have master private key from dumpwallet command: extended private masterkey: tprv8ZgxMBicQKsPdcg8UJAGEEQM6zQgyxgXXXXXXXX from there, I derived child key using bx hd-private command $ xprv=...
0
votes
1answer
39 views

How is someone not able to steal my bitcoin with Dumpprivkey command?

In an online course the instructor told us that anyone can find the private key of a wallet by using dumpprivkey(address), address being the address that is created from the key (which is public in a ...
3
votes
1answer
118 views

Is there a way to allow use of unconfirmed RBF outputs in transaction building?

Bitcoin Core seems to not consider unconfirmed outputs that are marked replaceable in input selection. Is there a way to override this protection and allow use anyway? The transaction is created using ...
1
vote
0answers
19 views

RPCConvertValues() call error

I'd like to call RPC programmatically, instead of using bitcoin-cli. when I call the function RPCConvertValues(), it always raise error RPCConvertValues() is defined here : https://github.com/...
1
vote
1answer
123 views

The result of bitcoin-cli getpeerinfo command

When I type bitcoin-cli getpeerinfo in shell, conspicuous property of the result are addr and addrlocal addrbind. 14.xx is my address and others are peer's address. I know that Bitcoin client can do ...
0
votes
0answers
61 views

Getting blockhash using bitcoin-cli command in shell

Currently, my node is syncing blocks and tip(height) is 230000. At this point, if I use command bitcoin-cli getblockhash 230000, the return information will be successful but, if I use bitcoin-cli ...
1
vote
1answer
31 views

Does getblockcount return the correct block count when running in prune mode?

I am currently running a bitcoin node with prune=550. The getBlockCount from $ bitcoin-cli getblockcount does not match https://blockexplorer.com/api/status?q=getBlockCount. As I understand it, the ...

1
2 3 4 5 6