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).

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

bitcoind jsonrpc bumpfee not returning hash of newly created transaction

I'm trying to implement replace by fee functionality with bictoind (v18) and bumpfee rpc call described here It works by mean that new transaction is created with higher fee, but result should be: { ...
0
votes
1answer
106 views

How to properly use importmulti with coldcard wallet BIP84 xpub?

I have seen the HWI scripts but I am trying to do this while keeping my Coldcard airgapped. First I create a wallet in bitcoin core with private keys disabled. I dump the wallet summary onto the ...
0
votes
0answers
32 views

How to use bitcoind-rpc.js to create raw transaction?

I am using bitcoind-rpc in javascript but i couldn't use the function/api that require 2 or more arguments. For example, what is the proper format of the arguments needed for createRawTransactions? ...
2
votes
1answer
136 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
14 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
26 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
1answer
24 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
2answers
79 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
0answers
34 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 ...
0
votes
1answer
31 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 ...
6
votes
1answer
50 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 ...
2
votes
1answer
42 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
2answers
63 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
52 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
1answer
41 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 ...
1
vote
1answer
103 views

bitcoind connection refused error with curl

my bitcoin.conf: server=1 rpcauth=myusername:e2aa83d74a55b7addfe070367546e72d$953dda2b7e2d5a151a7ef0e82ed50a734bf4c4ac55289fede8bd340489d5af0f rpcallowip=46.101.245.27clientip address datadir=/mnt/...
0
votes
0answers
38 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
18 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
2answers
57 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" ...
0
votes
1answer
44 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
44 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 ...
0
votes
0answers
34 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
65 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
25 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=/...
1
vote
0answers
57 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
1answer
35 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 ...
0
votes
0answers
30 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
34 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
1answer
47 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 ...
0
votes
1answer
36 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
0answers
16 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
27 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 ...
0
votes
1answer
27 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
0answers
101 views

Connection Refused when running bitcoind in a non-root user and trying to make RPC calls

I'm new to Bitcoin development and I'm currently having difficulties trying to make RPC calls to a Bitcoin-Core daemon running in a SSH server. I suppose that the problem is with Firewall or closed ...
0
votes
0answers
28 views

Sendmany unconfirmed coins (minconf = 0)

can somebody help me to figure out opportunities if bitcoind RPC. How to send unconfirmed coins? With RPC command 'sendmany' and param 'minconf = 0' for some reason not possible. But how to make this ...
2
votes
1answer
347 views

If I set assumevalid=0 after syncing the blockchain will Bitcoin Core go back and validate historical blocks?

I originally synced my node using the Bitcoin Core default assumevalid value. If I set assumevalid=0 in bitcoin.conf and restart my node, will my node go back and validate historical blocks?
0
votes
1answer
35 views

Check when transaction was added to the mempool?

I know how to check when a specific transaction was included in the block. But how do I check when my bitcoind node first saw it? I would like to estimate for how long the transaction stayed ...
3
votes
1answer
71 views

Why my bitcoind cannot query all the blocks?

I just install the bitcoind and run: bitcoind -daemon and when i tried to: bitcoin-cli getblockhash 195876 i got an message: error code: -8 error message: Block height out of range the command: ...
0
votes
1answer
45 views

bitcoind bulk import private keys to different wallets and update with one rescan

I was wondering if someone already has this thoughts or problems: I generate bitcoin addresses and private keys by a script - to not depend on the bitcoin daemon and manage them in a database. By ...
0
votes
0answers
12 views

Bitcoind is not running properly in centOS server

I just try to setup full node in centos(Linux distribution) server. I download binary for Linux from https://bitcoincore.org/bin/bitcoin-core-0.17.1/ . I just start bitcoind using the following ...
0
votes
0answers
26 views

Bitcoin core transaction catching for enterprise

I'm trying to implement a system where users of my application receive a deposit address to which they would be able to deposit any amount of Bitcoin at any given time. They would also be able to ...
1
vote
4answers
179 views

Notify when new transaction is arrive in a bitcoin address [duplicate]

I have bitcoin full node on the server. I need to notify when new incoming transaction is arrive into a bitcoin address. Is there any RPC will help to achieve my goal ... Any help is appreciable. ...
1
vote
1answer
56 views

Where to find rpcauth.py for configuring rpcauth in bitcoin.conf on Ubuntu

I can't find the python file to create the rpc credentials. According to the documentation it should reside somewhere here: using the output from the script in share/rpcauth/rpcauth.py
0
votes
2answers
59 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 ...
1
vote
1answer
104 views

Create multisignature wallet from xpub keys in bitcoin core

I can create Multisignature wallet electrum with 2 xpub keys. How can I create bitcoin core to do that? Standart use; Add a multisig address from 2 addresses bitcoin-cli addmultisigaddress 2 "[\"...
1
vote
0answers
39 views

Error mandatory-script-verify-flag-failed (Signature is found in scriptCode)

I found a few questions with the specific error, but couldn't find also the appropriate answer. So, here I am. I am working on regtest in a Python library that create transactions and then use JSON-...
1
vote
1answer
42 views

Create a transaction spendable in a specific block height

I am new in Bitcoin and I try to create an address in Bitcoind and send a transaction that the amount will be spendable in a specific height of the blockchain. Here is what I have done: privateKey = ...
0
votes
0answers
10 views

Move a Bitcoin full node running on Raspberry-Pi3 from the current microSD to another microSD

I have a fully syncronized full node with TOR The blockchain is stored on an external hard disk. The operative system is a Raspian What I have to do to move it to another microSD with operative ...
0
votes
0answers
23 views

Apply SSL for RPC port -Ubuntu 18.04 VPS server

I start bitcoind 0.17 in a particular port on Ubuntu 18.04 VPS server. I want to give the SSL certificate for RPC port. I already know to generate self signed certificate using OpenSSL. But I don't ...
0
votes
0answers
72 views

bitcoind localhost port 18332: Connection refused Ubuntu 18

Trying to connect to testnet using curl from localhost on ubuntu server. Tried lots of combinations of bitcoin.conf and ports. Here's my config: server=1 daemon=1 testnet=1 rpcuser=user rpcpassword=...