Questions tagged [bitcoin-cli]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
423 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
1
vote
1answer
64 views

Why is getdescriptorinfo returning an error “Invalid descriptor (code -5)”

I am using Bitcoin Core bitcoin-cli with getdescriptorinfo like so: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdescriptorinfo", "params":["sh(multi(2,[3c60330a/1]...
2
votes
1answer
20 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 ...
1
vote
1answer
32 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
92 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
2answers
67 views

Why does bitcoin-cli not know about working directory of bitcoind?

I have a /ect/systemd/system/bitcoin.service with the following content and I am wondering, why bitcoin-cli getinfo tells me about a configuration file elsewhere: error: Could not locate RPC ...
2
votes
2answers
63 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&...
0
votes
0answers
20 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 ...
1
vote
2answers
309 views

Specified data directory does not exist - but it does…

anyone ever had a similar issue where the directory exists but bitcoin-cli isn't recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD? Thank you! ...
2
votes
2answers
37 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, ...
2
votes
1answer
358 views

Need help to understand where bitcoin transaction has gone

I am new with bitcoin and I need some help from experienced members. I have a server with bitcoin core where we accept some payments and use bitcoin core as mercant. The problem is that we have got ...
0
votes
1answer
35 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']...
1
vote
2answers
54 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 "...
0
votes
2answers
161 views

how to split transactions based on send and receive Json rpc bitcoin

I am creating new wallet for bitcoin and want to know how we can get the separate list of send and receive transactions using JSON rpc. I cant see any method for json rpc that give list of send and ...
1
vote
2answers
32 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 ...
1
vote
1answer
561 views

RPC Command to send from multiple accounts to one account (default - “”) in same wallet

I have small amounts in multiple accounts in the same wallet. I want to send all of them to default account (usually named as ""). Is their any RPC command available for this scenario? Thanks in ...
1
vote
1answer
48 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....
0
votes
1answer
24 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....
2
votes
1answer
37 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
1answer
32 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 ...
3
votes
3answers
528 views

How can I accept Bitcoin as a payment without a 3rd party gateway

I want to create a website where users can pay with Bitcoin. However I want to create my own payment gateway because I do not want to rely on services like BitPay. I want a unique BTC address for ...
0
votes
1answer
18 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 $(...
0
votes
1answer
390 views

Bitcoin curl no reply

Hi I have made a curl to my server but get no reply . What am a missing rpcuser=rpcusername rpcpassword=rpcpassword rpcauth=rpcusername:generatedkey daemon=1 server=1 rpcport=8332 rpcbind=0.0....
-1
votes
1answer
51 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
46 views

bitcoin-cli decodescript wrong output

If I try to get info in genesis block, there is 1 tx: "scriptPubKey": { "asm": "...
1
vote
1answer
107 views

How can I pass Multiple addresses in Move command

I have to pass multiple addresses in move command but I am not able to pass as it is not accepting more than one wallet address Is there is any another way to move the balance to multiple addresses.
0
votes
1answer
326 views

Manage multiple users wallets for web wallet service

This already summaries the issue I'm currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried ...
2
votes
1answer
1k views

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I'm ...
1
vote
1answer
87 views

Why can't a user import keys to the keypool for a blank wallet?

I am creating a blank wallet with the intention of adding keys to the keypool but get an error keys can only be imported to the keypool when private keys are disabled Why? It would be beneficial for ...
0
votes
1answer
70 views

Transaction net gain/loss

I have a TXid in my wallet that contains multiple transactions (multiple sends and receives). From what I read these are transactions the network creates facilitate splitting/combining multiple inputs/...
0
votes
1answer
23 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?
1
vote
1answer
46 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-...
0
votes
0answers
15 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
505 views

How find own address in testnet using bitcoin-cli?

I have bitcoin-core installed, I am running it in testnet mode. Now if I want to fund my wallet, I need to know the receiving address. How do find my receiving address, so that I can fund it and then ...
1
vote
1answer
50 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 ...
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
25 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 ...
5
votes
2answers
4k views

64: too-long-mempool-chain

I am using bitcoind json rpc api to send bitcoin to multiple bitcoin addresses. I am using sendrawtransaction. When i have 24 unconfirmed payments sent from my account, i can't send anymore because i ...
2
votes
1answer
35 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
25 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
39 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 ...
2
votes
2answers
844 views

createrawtransaction online

createrawtransaction is a bitcoin-cli command that generates a raw transaction given one ore more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds. ...
1
vote
1answer
59 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
53 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 ...
7
votes
2answers
8k views

bitcoin-cli get all tx hashes for watch-only address

does bitcoin-cli have any functionality to get all tx hashes for a given address (ie the txs that either send or receive funds from the given address). listtransactions sounds like it should do what i ...
0
votes
2answers
26 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 ...

1
2 3 4 5 6