Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bitcoind]

This tag should be used for questions related to bitcoind, the command-line software for Bitcoin Core. It stands for "Bitcoin Daemon" where a daemon is any computer process which runs in the background ("service" in Windows terminology).

0
votes
1answer
322 views

Sendrawtransaction error with locktime : 64: non-final txid

I have created raw transaction with locktime and sign it. The lock time is already passed but still got error like this when sendrawtransaction 64: non-final txid the locktime value is 1523515709 ....
2
votes
1answer
113 views

What does it mean if TXID and WTXID are the same?

I'm having a tough time understanding what exactly WTXID is and what it means when WTXID and TXID are the same (and vica versa). What I understand is that WTXID includes the witness data. Since non-...
1
vote
0answers
8 views

Switching between pruned and non-pruned blocksdir ok?

Is it ok to swap the nodes blocksdir upon restart without corrupting sth. cache etc.. I have two blocksdir: one locally pruned blocks, the other external with all blocks in blocks on usb drive. Id ...
1
vote
1answer
20 views

Consistenly getting Block magic mismatch error?

I have bitcoind running (0.18) in my ubuntu machine and it keeps shutting down due after getting this error: ERROR: ReadRawBlockFromDisk: Block magic mismatch for CDiskBlockPos(nFile=0, nPos=68821043)...
0
votes
2answers
304 views

Is it possible to make transaction using wallet private key

I have a private key of a bitcoin wallet . Is there is any way i can check balance and make transaction using bitcoin core without importing private key.
0
votes
1answer
17 views

EstimateSmartFee returning same amount, regardless of conf_target

Running 18.0 on Testnet, fully synced at 1541869 blocks. bitcoin-cli estimatesmartfee 10 { "feerate": 0.00001014, "blocks": 10 } bitcoin-cli estimatesmartfee 50 { "feerate": 0.00001014, "...
0
votes
0answers
23 views

How manipulate the market? [closed]

Imagine. I have lot of bitcoin. How can i manipulate the market to sell hight and buy deep quickly ? Thank you
1
vote
2answers
79 views

how to set the transactions fee using the RPC call?

I am creating the web wallet for the bitcoin , I want to allow web wallet users to set the transactions fee . Is their is any rpc call available for setting the transactions fee (for setting ...
0
votes
1answer
322 views

How to cleanup mempool

I want to cleanup mempool. I googled and knew -zapwallettxes might clean up mempool. But when I do the following command, mempool is still loaded. ./bitcoind -testnet=3 -server -rest -dbcache=4000 ...
0
votes
2answers
37 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
92 views

how does bitcoind functions in bitcoin exchange model?

i mean exchange allows every users a unique BTC deposit address different users sends btc to different addresses but BTC endsup in same wallet can i create multiple receiving address by bitcoind (...
6
votes
1answer
37 views

Why does getheaders P2P API return more than getblocks?

I've been reading through the Bitcoin P2P protocol documentation as well as experimenting with Bitcore library but confused about one thing. So getblocks seems to return inventory objects, which are ...
7
votes
2answers
687 views

How to get notification on bitcoin receive with bitcoin core

How can I get Bitcoin receive notifications with Bitcoin Core. I have tried the walletnotify and blocknotify options. walletnotify is fired two times when I send or receive bitcoins. And with ...
12
votes
2answers
5k views

How can I setup Bitcoin to be anonymous with Tor?

Bitcoin is billed as many things, among them its anonymity is highly regarded. While it is true that a transaction does not identify a user or wallet, recent news shows that there is the potential for ...
0
votes
1answer
17 views

LND How to reset pending_open_channels?

I am using LND (most recent version 0.6.1-beta) and I have a lot of pending channels in state pending_open_channels which are stuck for many days (perhaps because of low fee and full mempool) so I ...
2
votes
1answer
31 views

Bitcoin Core What default values should I pass for some positional RPC params in sendtoaddress

I am trying to use the sendtoaddress rpc method of bitcoin core. From the documentation I read that I can pass "estimate_mode" parameter to estimate a fee. However as I believe json rpc follows ...
0
votes
0answers
23 views

How to delete .dat files? 'rm' command fails with “bad message”

rm: cannot remove '/home/[user]/btc/bitcoin-core/blocks/blk01253.dat': Bad message The same error message when I tried running bitcoind -reindex Info: OS: Ubuntu Bitcoind version: 0.18 External ...
1
vote
1answer
227 views

What bad things could happens if Bitcoind RPC is public?

It is always suggested to enforce authentication on Bitcoind RPC. However, in case the RPC authentication get compromised (or if it is public), what kind of bad things could happens? First I could ...
0
votes
1answer
15 views

How to get block headers from block hash using P2P API?

I have been experimenting with getheaders and one thing I can't seem to figure out is how to get a header for a specific hash, because getheaders doesn't provide this feature. According to the ...
0
votes
2answers
48 views

Bitcoin core How do I get the transaction fee while using sendtoaddress

I have a bitcoin core running on testnet, so for suppose I have a wallet balance of 1BTC and I have to send it to an addressx, so how can I know the amount of transaction fee so that I can subtract it ...
1
vote
1answer
41 views

How to handle multiple transactions from the same account(address)?

I am new to bitcoin so please bear my question. To understand the IN's and OUT's of this crypto world, i am creating a dummy bank to have a better understanding of the system. So I have a bitcoin ...
0
votes
2answers
43 views

How to ./configure a built for Raspberry Pi?

I want to use this guide to set up a headless bitcoin core full node and came across the line: ./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" ...
4
votes
2answers
2k views

How to interact with bitcoind using C++?

I know that bitcoind is written in C++, but I cannot figure out how to use its API within my program. I have been using a Python wrapper effectively, but I need another process running that is as ...
-3
votes
0answers
38 views

Bitcoin ABC unable to start server

I have a bitcoin full node running in my local system, now I also want to run a bitcoin cash full node on the same machine. So I downloaded pre-compiled source files from the following link : https:/...
1
vote
1answer
49 views

bitcoind connection refused error with curl

my bitcoin.conf: server=1 rpcauth=myusername:e2aa83d74a55b7addfe070367546e72d$953dda2b7e2d5a151a7ef0e82ed50a734bf4c4ac55289fede8bd340489d5af0f rpcallowip=46.101.245.27clientip address datadir=/mnt/...
2
votes
1answer
1k views

bitcoind sendfrom with minconf=0

Is it possible using bitcoind JSON-RPC API to receive funds from someone and send it immediately to another third-party address? I do not want to wait for 1 confirmation. getbalance with minconf=0 ...
1
vote
1answer
227 views

How to create wallet satisfying the scenarios?

I want to implement the wallet to create bitcoin and altcoins exchange and store system. Somehow create random or HD wallet that holds and store upto 50 user public keys.But users will not have ...
0
votes
0answers
17 views

what broke (and how do I fix it)?: I can mine testnet (via cgminer and bfgminer-0.5.5) on bitcoind-0.17, but not on bitcoin-0.18

I haven't changed any configuration, merely upgraded bitcoind. Working: the following scenario where machine 'A' has the ASIC, and bfgminer, and machine 'B' is running bitcoind-0.17 on testnet: ...
0
votes
0answers
13 views

Display IP address that bitcoin core bitcoind has discovered

Per the bitcoin wiki, bitcoind will auto-discver it's own IP address by default. However when I run bitcoin-cli getnetworkinfo the only address that is shown under "localaddresses" is the onion ...
0
votes
1answer
53 views

json-rpc of bitcoin not working for testnet(curl command)

I am trying this command to get transaction from bitcoin testnet: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/...
0
votes
1answer
17 views

How do I start a bitcoind server in deprecated mode for multiple functions

I have a bitcoind server running bitcoin-core version 0.17. Now since I need to use deprecated RPC methods I need to start the bitcoind server in deprecated mode, so I am already able to run it to ...
0
votes
1answer
27 views

Understanding bitcoin-cli commands walletlock and walletpassphrase

I am trying to understand two commands listed in the following link. 1. walletpassphrase Stores the wallet decryption key in memory for <timeout> seconds. 2. walletlock Removes the wallet ...
1
vote
0answers
30 views

Enable dustRelayFee behavior on testnet to get error code 64: dust

Crafting and sending an utxo of 1 satoshi does works and get mined on testnet without error. However on mainnet the error code 64: dust arise. I understand the basic idea that you are not able to ...
0
votes
0answers
22 views

How to communicate with encrypted bitcoin wallet using bitcoin-core in NodeJS

I have a full node running in my local system and I am using this library named bitcoin-core to communicate with the bitcoind server. Now I have encrypted my wallet with a passphrase so I understand ...
1
vote
2answers
33 views

How do I install a specific version of bitcoin-core

I need to run bitcoind version 0.17, however the latest available version is 0.18, if I follow the instructions from this link it installs the latest version. The below links lists the packages for ...
0
votes
0answers
23 views

New block watcher

guys. I need to create bitcoin watcher, which will subscribe to new block event of bitcoin node and make some operations with mined transactions. For starting node I use bitcoind -testnet -datadir=/...
0
votes
1answer
24 views

bitcoind rest api tx endpoint

i am having a trouble with bitcoind REST API endpoint for retrieving transaction info. According to the documentation it should return confirmations among the retrieved data. But my bitcoind do not ...
16
votes
8answers
10k views

How to check Bitcoind block chain download progress level

I have installed bitcoind on ubuntu server, and when I run screen -x for btc it says error -10 blockchain is downloading. How do I know the progress level? currently 125600 blocks are downloaded, but ...
0
votes
1answer
23 views

What happened? $litecoin-cli getnewaddress is missing, Litecoin v0.17.1 how to getnewaddress?

I install bitcoind and litecoind... oh yes im on command line, setting up a node. prune the blockchain Litecoin is ready I want to generate newaddress to test and litecoin-cli does not show ...
0
votes
0answers
23 views

I can not enable wallet, how can I enable it? already deleted disablewallet=1 from conf

how can I enable wallet in my node. I put disablewallet=1 but now I want to enable wallet, I deleted that line... but I get no wallet... how can I get a wallet_
0
votes
1answer
27 views

Understanding default bitcoin wallet in bitcoind

I am new to block-chain, so please bear with my questions. I need to understand the basics of a bitcoin-wallet. So I have setup a bitcoin full node using bitcoind in running in testnet mode. As I ...
1
vote
1answer
188 views

Bitcoin RPC connection

I am trying to insert bitcoin transactions into MongoDB using python3. Below is my code : import pymongo import sys import json import time from bitcoinrpc.authproxy import AuthServiceProxy, ...
0
votes
1answer
23 views

How to get number of transaction confirmation from bitcoind?

I have a question, How can I get the number of transaction confirmation by using bitcoind? for example: https://live.blockcypher.com/btc-testnet/tx/...
0
votes
2answers
23 views

What are the web3py equivalent for communicating with bitcoin in Python?

I am fairly new to working with Python, I have a requirement where I need to perform some basic bitcoin operations on my local system rather than relying on some external API's, those function mainly ...
0
votes
0answers
14 views

add mysql dependency configure.ac bitcoin

i am working on bitcoin code, my aim is to move blockchain data to relational db but i am not able to resolve mysql dependency for different platform, platform includes mac and ubuntu. I have tried ...
0
votes
0answers
16 views

How to replicate getaccountaddress behaviour using getnewaddress and labels api

The problem is getaccountaddress is getting deprecated and it has specific behaviour (not related to accounts) I'm relying heavily on. It gives you the same address between multiple calls as long as ...
23
votes
1answer
24k views

What is the difference between the rpc port 8332 and port 8333?

What is the difference between the protocol and commands used on default ports 8332 and port 8333? From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by ...
2
votes
2answers
4k views

Create a raw transaction and broadcast it to blockchain using bitcoin core

I have a address- n3xYQtxvVwpBPSbgGsGRdMWz1YTUjakiMV, amount that i want to send-1 BTC and i have a private key. How can i create a raw transaction using it and broadcast it to blockchain using ...
0
votes
1answer
26 views

Can we get any default address before running getnewaddress?

I am trying to develop some application using bitcoin (currently only in the regtest mode). I am aware that one can create a new address using bitcoin-cli -regtest getnewaddress RPC call, but I ...
0
votes
2answers
700 views

how to run multiple bitcoind node on one server?

I have created one full node bitcoind on my VPS, that one is serving application A. Now I want to create application B that has another node but on same VPS. is that possible to install multiple ...