The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [bitcoin-core]

This tag should be used for questions pertaining to Bitcoin Core. Bitcoin Core is an MIT-licensed Qt 5 GUI application for the original Bitcoin codebase. Additional/previous names include "Bitcoin-Qt", "Satoshi-Client", and "Standard Client". This tag should be used when referring to the Bitcoin Core software.

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

These testnet outputs are not making sense to me

Today I took some time to mess around with the bit Python library, which I find pretty easy to use. I have been wanting to do some Bitcoin programming for a while, so I decided to create a simple web ...
0
votes
1answer
38 views

Using importmulti with internal set to true does not add any change keys. What am I doing wrong?

First I call: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createwallet", "params":["ColdWallet", true] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:18332/ ...
0
votes
0answers
52 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? ...
0
votes
1answer
77 views

My passphrase doesn't work and I can't send any bitcoins from my wallet

When I encrypted my wallet, I created a passphrase and wrote it down very carefully. Now, when I try to make a payment to an address, I received the following message: "Wallet unlock failed: The ...
1
vote
1answer
106 views

When I use importmulti with an xprv it never imports the private keys. What am I doing wrong?

When I call: bitcoin-cli getdescriptorinfo "pkh(tprv8iDvhA6eaMDbRuH3D2DTNuH6N6LvMTVrcv7z6sVxyyYvThSaCSa3i3qFVqUgVL4NbVkACxjx3KPWLoP5jvDU3i16hjTnzEFnZuqsnTJ5F4n/*)" it returns: { "descriptor": "...
0
votes
1answer
89 views

Can Bitcoin and Bitcoin Cash potentially have the same address?

Because Bitcoin Cash is forked from Bitcoin, what happens if two separate users create a wallet, could their address potentially be the same? Let's call that address xyz. Then if someone sends money ...
3
votes
1answer
99 views

Has Bitcoin Cores encryption wallet security ever been bypassable?

Every few years there seems to be an exploit found in Trezor that allows people to bypass the security. I was wondering has there every been the same case for Bitcoin Core wallet encryption?
1
vote
0answers
69 views

demonstrate tracking some bitcoin transactions with a program like an explorer

Recently I started to read BITCOIN protocol and it's events when a transaction created. I want to create a program a bitcoin explorer. as you know probably, Each non-coinbase input spends an outpoint ...
3
votes
2answers
69 views

What if bitcoin has a bug?

If a fundamental bug is found in bitcoin does that mean that the only way to patch it would be a hard fork? I'm confused at how this software that only has one version is running for 10 years without ...
0
votes
0answers
18 views

How to recover from “failed with non-mandatory-script-verify-flag (Script evaluated without error but finished with a false/empty top stack element)”?

I'm getting: 2019-06-14T01:16:35Z ERROR: ConnectBlock(): CheckInputs on c2de0a7014853898bde9319cb347225d4ee6cef9025dc56773b0b57010060d48 failed with non-mandatory-script-verify-flag (Script evaluated ...
1
vote
0answers
42 views

Parse signature and public key from scriptsig in an input transaction of bitcoin protocol [duplicate]

I'm interested in bitcoin protocol and checking validation of a transaction. in a TX message, we can see one or more than one input transaction and every input transaction has a previous transaction ...
0
votes
1answer
82 views

RPCPORT and --rpcport not working in Latest version: 0.18.0

We are using bitcoin core RPC Endpoint to broadcast transaction over network, It was working perfectly till version 0.17.0 but in latest version 0.18.0 RPCPORT and --rpcport is not working. Please ...
0
votes
0answers
29 views

Extract input addresses from a tx message in bitcoin protocol

Recently, I wrote a c++ code to extract some information from some messages in BITCOIN protocol. for example, I extracted bitcoin value and output address corresponded to it from tx messages of this ...
-1
votes
1answer
33 views

Need help with understanding this script file

Here is an image of txt file. I had asked someone to help get some bitcoin out and they sent me this code with a price tag of 12$ But I have no idea what its used for as they have not responded. Any ...
1
vote
2answers
28 views

Background information on warning, when closing wallet in pruned mode

What are the implications and reasons behind this warning on gui popup, when closing the wallet: "bitcoin closing the wallet for too long can result in having to resync the entire chain if ...
2
votes
1answer
140 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-...
0
votes
1answer
25 views

Bitcoin core does not produce a wallet at all

I'm reading tutorials on working with bitcoin core like this: http://bitcoindaily.org/bitcoin-guides/bitcoin-core-tutorial/ and http://bitcoindaily.org/bitcoin-guides/how-to-recover-bitcoins-bitcoin-...
0
votes
1answer
17 views

Is there a way to determine the difference between a BTC prefix 3 address and a LTC prefix 3 address?

I am trying to determine if there is a way to tell the difference between a BTC prefix 3 address and a LTC prefix 3 address, for validation purpose. Example if given this public key address: ...
0
votes
0answers
52 views

No JSON object could be decoded; Failed to subscribe; IO errors - 1, tolerance 2

I´m using GUIminer and Bitcoincore. When I start to mining I got that message, how can I fixed it?
0
votes
1answer
22 views

looking for faucet API so i could use it for tests - Automated faucet

i would like to make some tests on test net, the issue is every time i have insufficient fund in my wallet i need to find a faucet and manually add funds. i would like to create an automatic faucet ...
0
votes
0answers
24 views

Import private key from coldstorage wallet.dat to hotwallet wallet.dat?

What is the recommended procedure to make coins from coldstorage accessible. Assume latest wallet.dat v18 and prv1/pub1 key pair (like shown in dumpwallet). Now i have a hotwallet and would like to ...
0
votes
0answers
19 views

Empty reply from server v0.18.0

From the wallet comes an empty response to my request. Logs 2019-06-12T06: 46: 15Z sending inv (37 bytes) peer = 11 2019-06-12T06: 46: 15Z received: addr (31 bytes) peer = 27 2019-06-12T06: 46: 15Z ...
0
votes
0answers
46 views

Invalid -rpcallowip subnet specification: *.Valid are a single IP, a network/netmask or a network/CIDR

I'm new and all this of bitcoin, but I'm trying… I downloaded BitcoinCore and GUIminer, I made the configuration for solo minning (I created my username and password, I set Bitcoin client path) but ...
1
vote
1answer
62 views

How exactly do I decode the block file info in leveldb?

Base on the links https://github.com/bitcoin/bitcoin/blob/fcbc8bfa6d10cac4f16699d6e6e68fb6eb98acd0/src/main.h#L392 and What are the keys used in the blockchain levelDB (ie what are the key:value ...
0
votes
1answer
53 views

BlockUntilSyncedToCurrentChain: txindex is catching up on block notifications

The message "BlockUntilSyncedToCurrentChain: txindex is catching up on block notifications" is appearing regularly in my debug.log. When these messages appear, I can be sure that lnd will not be able ...
0
votes
0answers
27 views

why a specific transaction value and it's output address which is sent from a specific IP address, returns from another address to that IP address? [duplicate]

I wrote a code to extract bitcoin output addresses and their values from TX messages of the bitcoin protocol. to test it, I prepare this scenario: first I send a specific bitcoin value(for example A ...
0
votes
1answer
40 views

Does Bitcoin Core still use “Bitcoin seed” in addition to a seed like stated in BIP 32?

In BIP 32 it's stated that a Master Private key is generated by hashing the concatenation of a random seed and the string "Bitcoin seed". And is like so in the example implementations. But I couldn't ...
1
vote
1answer
92 views

How to get balance for a label

I have lots of addresses organized under a label. Is there a command to show the total remaining amount available under a label ? (Or address) I am building a payment gateway and I need get the total ...
5
votes
1answer
856 views

Is there a reason to why Bitcoin Core does not implement BIP39?

Is there a specific reason to why BIP39 isn't added to Bitcoin Core? Seems very trivial to add and am confused to why it isn't there.
0
votes
0answers
37 views

My Bitcoin client has stopped syncing

As you can see my client is stuck on 99,7% with unknown. Syncing Headers(577895), It has been in this state since last day synced(which you can see). How can I get it to work since I have plenty of ...
0
votes
1answer
34 views

What's the purpose of CSHA256::Write and CSHA256::Finalize

Looking at Bitcoin Core implementation of SHA256, I noticed it was a bit different from OpenSSL's implementation. In OpenSSL, you would initialize a variable with SHA256_CTX when in Bitcoin Core it's ...
0
votes
1answer
76 views

Stay on memory pool when I sending multiple transaction from bitcoin wallet

I run the bitcoin client 0.17.1 on my ubuntu 18.04 desktop. I have some balance in my wallet. Also my client is fully synced.I have face the wallet conflict. When I send multiple transaction at once(...
0
votes
1answer
31 views

Retrieve number of OP-RETURN transaction

Is there a possible way to extract the bitcoin transaction protocoll with Python and extract specifically OP RETURN transaction? I want to plot the number of those over the course of time to derive ...
0
votes
1answer
80 views

Testnet credentials

How to get testnet credentials to use bit-coin core functions in Node.js. { "Bitcoin": { "testnet": { "username": "name", "password": "sdaddf", "network": "regtest", ...
0
votes
0answers
27 views

Bitcoin wallet address

I generated a paper wallet. Then search Blockchain.com with the public key. There are 2 blockchain results with same public key. 1) BTC address and 2) BCH address. This is confusing. How can I ...
0
votes
1answer
53 views

Confused on using SHA256 code from Bitcoin Core

I was looking at Bitcoin Core code to use its SHA256 code but am confused on where I should be looking at. In bitcoin/src/crypto/sha256.h there is CSHA256 and in bitcoin/src/crypto/sha256.cpp there ...
0
votes
1answer
42 views

Total Bitcoins in circulation on any given day? [duplicate]

I'm creating a spreadsheet to track total bitcoins in circulation from day 1. This would be to add up each Bitcoin per day created and add to an accumulating total. For example, if we picked any day ...
0
votes
1answer
42 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
54 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
52 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
75 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
57 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
40 views

Bitcoin transactions validation process

I have a general understanding of building blocks. But am hoping someone can fill in the details/gaps. Also, can you correct if something is not right? Thanks. Scenario: Bitcoin transactions are ...
0
votes
0answers
46 views

How to sync my backed up wallet?

I backed up my wallet from computer A. restored the backup on computer B. then I spent some amount of bitcoin from computer A. Now my restored wallet on computer B shows the old balance which is ...
0
votes
0answers
25 views

Which is the correct value for Tx version in tx messages of bitcoin pcap?

recently i researched about TX messages in bitcoin protocol and capture a bitcoin traffic which, the version field of a TX message in a specific packet was equal to 2, while in this article : https://...
0
votes
0answers
42 views

Where is the code of chain reorganization in Bitcoin Core

I'm trying to understand how Bitcoin Core works in-depth. Can someone tell me where is the code executed during a blockchain reorganization in Bitcoin Core? Any explanation would also be greatly ...
0
votes
0answers
102 views

Send to bech32 segwit address from Bitcoin Core 17.1

I have a non-HD wallet in Bitcoin Core v17.1. I have never used SegWit before. I need to send some coins to a bech32 address from bitcoin-qt GUI. The problem is after selecting the specific coin ...
0
votes
1answer
32 views

Does Decentralized Cryptocurrency Exchange work for Bitcoin?

I know ETH works because it has a smart contract feature, what about Bitcoin?
0
votes
0answers
92 views

Litecoin : Error ECONNRESET while trying to connect with NodeJS

I am getting started with Litecoin so please bear with my question. So I have a local litecoin node running in my local system. So I am planning to use NodeJS to communicate with the Litecoin server. ...
0
votes
0answers
25 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 ...