We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [bitcoin-cli]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
490 views

Interpreting results from “bitcoin-cli getmempoolinfo”

A bit of a conundrum interpreting the results from "bitcoin-cli getmempoolinfo". Straight from https://chainquery.com/bitcoin-api/getmempoolinfo: getmempoolinfo Returns details on the active state ...
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 ...
1
vote
1answer
217 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

How to check if my node is fully sync'ed

Using bitcoin-cli, how do I check how sync'ed my full node is?
1
vote
1answer
327 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 ...
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
330 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 ...
2
votes
1answer
3k views

How to find bitcoin balance via command line

I'm wondering how to find the balance a wallet for a full node on a command-line only linux box. bitcoin-cli doesn't seem to help here, and I'm not sure what else to try.
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....
1
vote
1answer
626 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 ...
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 ...
3
votes
2answers
739 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 the blockchain begins to download: By typing ...
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 ...
2
votes
2answers
3k views

How to send btc from the specific address using bitcoin api?

I'd like to send bitcoin from the specific address to a address using bitcoin api. I used 'sendfrom' as follows. Each address "mqXhhivMPjeVvdVMR239EVDJiRGQUYcbDZ" and "...
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 ...
7
votes
1answer
5k views

How to sign bitcoin transaction with 'bitcoind' and non-bitcoind-wallet private key?

I want to create and sign bitcoin transaction using only 'bitcoind' and 'bitcoin-cli'. I can create a transaction using createrawtransaction RPC API, but signing it using 'signrawtransaction' fails. ...