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
227 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
186 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
522 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
233 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
393 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
139 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
409 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
433 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
355 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
103 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
622 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
220 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
334 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
174 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....
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
629 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
5k 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 ...