Questions tagged [bitcoin-cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

regtest method not found

I have alredy looked at a lot of other similar questions here but they didn't involve my case or the solutions provided did not work for me. I'm trying to work in regtest mode and I'm using bitcoin ...
1
vote
1answer
857 views

Bitcoind how to get my bitcoin cash [duplicate]

So our server has bitcond and we have bitcoin on it. How do we get our bitcoin cash?
1
vote
1answer
947 views

Why 'bitcoin-cli getreceivedbyaddress …' always returns 0?

I've already synchronized about 400.000 blocks, but every time I'm trying to get balance for specific address, e.g. first coinbase address - link: $ bitcoin-cli getreceivedbyaddress ...
1
vote
1answer
2k views

How to pass password with special characters to RPC API via curl?

When I set a simple password in my .conf file rpcuser=user rpcpassword=password I can contact my wallet using curl from the command line like so: $ curl --verbose --user 'user:password' --data-...
1
vote
0answers
460 views

“Error: Invalid RPC method” when i try to create block in regtest mode

I use Ubuntu. After i run bitcoind -regtest -daemon I tried to create blocks by running command: bitcoin-cli -regtest generate 101 And it returned error like this: Error: Invalid RPC method ...
1
vote
1answer
584 views

Bitcoin Core telling me transaction is not “trusted”

I'm running a full node without the GUI, so I'm controlling it with bitcoin-cli. I sent bitcoin to another address, same as I always do, but this time I can't pull up the transaction on any of the ...
1
vote
0answers
224 views

Transaction instantly rejected trying to send from bitcoin-cli

Trying to send bitcoins with this command: bitcoin-cli sendfrom accountdos 1HC...kgT 0.03233376 1 I get this error immediately: The transaction was rejected! This might happen if some of the coins in ...
0
votes
1answer
392 views

Check if an address is new or has been used already

Say, I have an address. I can check if it's watch-only by calling validateaddress. Is there such an easy way to check it that address is new or has been used already?
1
vote
1answer
222 views

How can I run bitcoin-cli with disabled syncing?

I have synced about 200.000 blocks and that's enough for my purposes. So I want to use bitcoincli, but when it runs with enabled syncing (by default), my computer works to slow. How can I disable ...
3
votes
2answers
2k views

bitcoin-cli commands like createrawtransaction not working with json on command line

I am trying to create raw transaction using the createrawtransaction api on testnet using the Windows7 command line. I always get an "error parsing JSON": C:\Users\amjad>bitcoin-cli -testnet ...
2
votes
0answers
28 views

How do I get the addresses of input transactions using bitcoin-cli? [duplicate]

I noticed that the bitcoin-cli getrawtransaction does not show the addresses of input transactions. For example, I execute the following command. bitcoin-cli getrawtransaction ...
2
votes
0answers
163 views

Electrum via command-line: can generic blockchain info be requested?

For example can I ask the Electrum client via it's API what the height or version of the latest block is? Looking through the docs all I currently see is wallet commands.
0
votes
1answer
1k views

bitcoin-cli can't connect to server

I'm trying to put up a simple system for some penetration tests. I have an Ubuntu server 16.04.1 with apache2 and bitcoin. all running "Hiddn service" through tor (and bitcoind proxied 127.0.0.1:9050)....
2
votes
2answers
2k views

How can I import an existing Blockchain.info wallet to bitcoin-cli?

I manage several accounts which I created via Blockchain.info for my webapp. I'm migrating to bitcoin-cli instead of using their API due to the high amount of calls I have to make. I'm a bitcoin-cli ...
5
votes
1answer
2k views

Can you list receiving addresses in bitcoin-cli?

In bitcoin-qt, there are interfaces for seeing "receiving addresses" which have been generated in the past. I don't see any way to do that in bitcoin-cli.
0
votes
1answer
211 views

Get outpoint for a transaction

I'm trying to get the outpoint for a transaction but I don't find how to. The pages here and here look like saying that the outpoint must have 36 characters, of what 32 are the TXID and 4 are the ...
1
vote
1answer
180 views

GetRawTransaction not returning time

I am trying to write a quick blockchain explorer so that I can lookup transactions on my own server rather than using a 3rd party service - consider this an exercise more than a production service. I ...
2
votes
1answer
424 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
227 views

bitcoin-cli sendrawtransaction gives odd error 16

When I submit the tx below with bitcoin-cli sendrawtransaction I get the error 16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack ...
1
vote
1answer
379 views

Is it possible to read every transaction my node relays?

I'd like to add every valid transaction my node receives to my own database. At the moment, I'm using getrawmempool every second to find new transactions, and then getting the data for them using ...
0
votes
1answer
135 views

How bitcoin node server establishes outbound connections to other full nodes

I installed bitcoin-core (https://bitcoin.org) on my server and run it as testnet. After that I tried to create a new testnet address "miYAFfw8xFEj2VCKKsMCu5L4uCEvC73xh5" at this page: http://tpfaucet....
1
vote
1answer
364 views

How to get more chain tips from getchaintips?

I've just restarted my node. When I run getchaintips, it only gives me 48 tips (the lowest being at a height of 402,609). Does getchaintips only return a limited number of branch tips? If so, is it ...
2
votes
2answers
2k views

Bitcoind error -28

The following CLI command: $ bitcoin-cli getblockcount Gives the following error message: error code: -28 error message: Activating best chain... Any idea what is error code: -28?
2
votes
0answers
410 views

vout value in createrawtransaction

I have been following the Bitcoin Core tutorial on creating a simple raw transaction from an offline computer using the CLI. The part on createrawtransaction indicates that the raw transaction should ...
6
votes
2answers
1k views

How to detect a fork with bitcoin-cli?

I'm keeping a simple log of blocks, and storing them in an array. When a new block arrives, I add it to the array. Let's say this is my block chain array: E <- tip D C B A Now, say a new ...
2
votes
1answer
316 views

Why does getblocktemplate use priority for transaction selection?

I don't know how getblocktemplate works exactly, but it seems to include transactions based on priority. Selecting transactions based on priority isn't the most profitable method for building a block ...
3
votes
1answer
100 views

Why does bitcoin-cli return strange version numbers for blocks?

I've been looking at the version numbers of blocks, but I'm getting strange results from bitcoin-cli getblock. "version": 536870913 However, when I run the same command with the false option (to get ...
2
votes
0answers
576 views

Mempool filled with 14KB transactions, tons of inputs, 0.15 mBTC fee

With the blockchain experiencing extremely high transaction volumes (most blocks at the 1MB size limit), I am interested in studying the "backlog" of transactions in the memory pool on my own full ...
1
vote
1answer
215 views

Is there a way to get the memory pool in order of newest first?

I'm trying to list out the results of getrawmempool by newest transactions first. Here's what I've got: getrawmempool returns the memory pool in order of transaction hash, so I'm using PHP to sort ...
2
votes
1answer
3k views
2
votes
1answer
2k views

How can I set the transaction fee when creating a transaction through Bitcoin-cli commands?

I want to run the following command via bitcoin-cli: ./bitcoin-cli sendfrom "10302c02147e2948cbejd9a2bd80d9691ef08a6a4d416c2bb602143a4anj06b90e" "32cjBTQkfLBp38ixj7hdjk0cc90VPPnwhQ" 3.04384215 (...
0
votes
1answer
302 views

Why do you have to search for TXIDs in little-endian?

I understand that when you double-sha256 some transaction data, it will give you the TXID for that transaction. This can then be used in future transaction data when you want to reference an existing ...
0
votes
0answers
167 views

Getting the lasthash on a bitcoin full node using bitcoin-cli

I'm trying to figure out how to get the last block hash using bitcoin-cli. I read the help: $ bitcoin-cli help == Blockchain == getbestblockhash getblock "hash" ( verbose ) getblockchaininfo ...
2
votes
1answer
2k views

Manually banning nodes through CLI

I cant find this info: How can I ban through CLI a peer connected to my full node? I like how can I do it in the 0.12.0 GUI just with right-click and choosing for how much time I want to ban the peer....
3
votes
2answers
724 views

How to run a full node: Am I already doing so?

I ´ve succesfully installed bitcoind and bitcoin-cli. I got some questions about it: I run bitcoind in the background by typing: bitcoind -daemon and block chain begins to download: by typing ...
7
votes
1answer
7k 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 ...
1
vote
1answer
607 views

Bitcoin-cli balance minconf

When I use the getbalance command in bitcoin-cli and I set minconf to 1. Will it display the bitcoins with 1 confirmations and more? If this is true, what is a good amount of confirmations that will ...
5
votes
1answer
4k views

Why is my bitcoind daemon not listening on RPC port at 8332?

I have read a similar post which had no answer at this location. I am trying to use bitcoin-cli from a host that different from the host that runs bitcoind. I also would be happy with being able to ...