New answers tagged

1

When more than one wallet is available, the wallet is selected by sending the RPC requests to <host:port>/wallet/<wallet_name>. You might have to play around with the exact form, I suspect it might be <host:port>/wallet/wallets/walletA in your case, or <host:port>/wallets/walletA, or <host:port>/wallet/walletA.


3

libbitcoin is not, and was never a part of Bitcoin Core. Both are standalone implementations of the Bitcoin protocol. Bitcoin Core, in its build process, will create a number of files named "libbitcoin_...". These are just locally generated files that are unrelated to the libbitcoin project. Bitcoin Core does not have any files with the "hpp" extension. So ...


1

You can tell bitcoind to have 0 connections using: bitcoind -maxconnections=0


0

I had to change the timeout variable that is used inside the method of the library by giving a value to it when calling the method.


0

It's not working because it does not have sufficient data to give you a reasonable estimation. You will need a steady rate of transactions on the network for a sustained period of time. On regtest, that means you'll need to simulate those transactions as there is no network to provide them. It's easier to see estimatesmartfee in action on testnet or ...


1

You may be trying to validate a mainnet address on a testnet/regtest client. For the benefit of others: <?php require '/tmp/vendor/autoload.php'; $command = new \Nbobtc\Command\Command('getinfo'); $client = new \Nbobtc\Http\Client('http://username:password@localhost:18332'); # legacy testnet address #$address = "mvM368BXwRNx4HcYdL8XbU8hAX274gMKcq"; #...


3

Although certain releases perform database upgrades, the upgrade is handled by the bitcoind binary - updating a node only requires changing the binary, regardless of whether you downloaded a prebuilt one or compiled it from source. If any additional changes to the bitcoin data are required, the updated bitcoind will perform them when it starts. If you are ...


0

Yes I can delete /home/USER/bitcoin after successfully installing bitcoind.


0

There is no way to reduce the amount of memory used by a loaded wallet other than modifying the code itself. There are no configuration options for this. You really should not be trying to run so many wallets on a low powered machine.


0

There is different way to optimize, configure or reduce the memory usage of bitcoind, I invite you to see this page from the bitcoind github who talk about it: https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md


2

Is bitcoin-cli available? If so, bitcoin-cli stop instead of pkill $BITCOIND_PID. My own preference is to add sleep 2 following a stop, as I've experienced issues immediately restarting the stopped daemon where it behaves like a child thread hasn't finished cleaning up before the parent exits. That may not be what's happening - I've not investigated that ...


0

You will likely need to add an OP_CHECKSEQUENCEVERIFY guard before the OP_CHECKMULTISIG statement in your output script. https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki


0

I develop on regtest, and only later test on testnet; my regtest folder is 18Mb in size. Regtest also has on-demand mining meaning I don't have to wait on the miners among other advantages. My testnet3 folder is now 27Gb in size suggesting you should be able to accommodate it without problem. The full blockchain for mainnet is almost 250Gb. A second-hand ...


0

You can run your node in pruned mode if storage is your concern. Reduce Storage If you want to try to use bitcoin on testnet you can use Electrum wallet. Be sure to download it from their official website https://electrum.org/. (Do not download Electrum from another source than electrum.org, and learn to verify GPG signatures.)


0

We can run 2 bitcoind nodes on a single server without installing it multiple times. We just have to create 2 data directory with a different configuration file (bitcoin.conf) for the 2 nodes. This configuration file should have different port numbers, user name and password specified. Node1: bitcoind -regtest -datadir=./bitcoinNode1/ -conf=./bitcoinNode1/...


0

There is a free bitcoin-cli sandbox at bitcoindev.network: Here is a simple sandbox environment for trying out the bitcoin command line interface! Select Start Scenario to bootstrap your own private instance! You can check out the on-line sandbox here: https://bitcoindev.network/bitcoin-cli-sandbox/ Simultaneously they provide a docker container for ...


0

Bitcoin wallet accounts are designed for personal use, so your use case requires to develop on a different layer, as explained by G. Maxwell here: https://github.com/bitcoin/bitcoin/issues/3816#issuecomment-37052569


6

Just got help from someone at BitcoinTalk forum, who directed me to bitcoind 0.11.0 changelog (Which pruning was introduced/implemented for the first time in bitcoind) As indicated there, Block pruning deletes raw block & undo data: ... there are four types of data related to the blockchain in the bitcoin system: the raw blocks as received over the ...


1

(Sane) Exchanges don't store keys on an online, publicly accessible server or instance of bitcoind. The normal approach is to set up a minimum of three wallets: The receiver wallet - This wallet controls the addresses given to users to deposit their coins to. It is good practice to keep such keys entirely offline, as it is uncommon to need to move the BTC ...


1

Remember that bitcoind is a reference implementation, but bitcoin itself is the abstraction of it. In production environments not always you run the same software as in a desktop. There are other bitcoin implementations that are meant for use in production systems at scale. One of them is called bcoin by the folks at purse.io and open sourced. And there ...


1

Change the timeout inside the file bitcoin.conf or when you start the bitcoind, This is an example ## ## bitcoin.conf configuration file. Lines beginning with # are comments. ## # On client-side, you add the normal user/password pair to send commands: rpcuser=alice rpcpassword=bob rpcclienttimeout=200 or you can run the bitcoind with this command bitcoind ...


0

The reasons for my problems where the following: bitcoin-init seems to be the correct process. getinfo is no longer a method, it has been removed. My startup skript /etc/systemd/system/bitcoind.startup was running bitcoind with user bitcoin. When I started it manually bitcoind run with another user (the active one I was using the shell with). bitcoind ...


0

To view active-connections to the Bitcoin Network, simply run bitcoin-cli getconnectioncount to return the count within the terminal-output.


0

On command line bitcoin can be started in several ways bitcoind starts a process with the current user. This way the home directory of this user will be searched for a config file and will be used as data directory as default. service bitcoin start will use the startup script /etc/systemd/system/bitcoind.service. This might contain a link to a ...


1

With the order, I will try to response to your question. According to this thread I assume that the daemon process bitcoind has been renamed to bitcoin-init but I am not sure if I understood that correctly. I don't think the bitcoind is rewriting to bitcoin-init, but I don't have a mode for testing bitcoin-core on raspberry, so I ask you if you can post "...


0

You if you're on docker, don't publish the RPC port to the host, therefore you're protected, even with rpcbind=0.0.0.0 on docker-compose file, specify the ports in the expose section instead of the ports section https://docs.docker.com/compose/compose-file/#expose


1

The problem was in libevent 2.0.22. It spoiled HTTP response from bitcoind every time. libevent 2.1.11 fixed this issue.


0

bitcoin.conf should contain the machine's own IP address as an argument to the rpcbind parameter. For example, if you are running bitcoind on a machine with IP address 1.1.1.1 and you wish to connect to its RPC server from a different machine, your bitcoin.conf file on machine 1.1.1.1 should contain the line rpcbind=1.1.1.1.


0

It is possible to mimic the same functionality of getaccountaddress using a label. This is an example in python: #!/usr/bin/env python3 import bitcoin.rpc bitcoin.SelectParams('regtest') proxy = bitcoin.rpc.Proxy() def get_unused_address(): label = 'donations' unused = None try: addr_list = proxy.call('getaddressesbylabel', label) ...


1

Your question contains many misconceptions. Yes, it is perfectly fine and safe to generate private keys and their corresponding addresses completely offline and not connected to the internet. In fact, people recommend that you do this because it is safer than doing it online. There is no central database (Bitcoin is decentralized) where you must register a ...


Top 50 recent answers are included