Hot answers tagged

5

Found it out, you just need to give it a username and password. You can add them to a bitcoin.conf file in your datadir. This file isn't automatically created. The default datadir is at ~/.bitcoin, so you can make a ~/.bitcoin/bitcoin.conf rpcuser=user rpcpassword=pass Additionally, if you'd like, you can later pass your username and passwords as URL ...


3

The blockchain only records transfers of Bitcoin, and there is no reason to believe that every payment is linked to trading activity. The blockchain does not record reasons why funds were transferred, and it most certainly doesn't record trading activity. How could it, when trading inherently involves the exchange for another good, service, or currency which ...


3

A bitcoin transaction is composed of inputs (coins) and output (coins). As example, if a transaction has 10 inputs worth 1 BTC each, and 10 outputs worth 1 BTC each, there is no meaningful way to discern "which input become which output?", it is a nonsensical question at a technical level. Think of it as if all of the inputs are melded together, ...


2

Use getblockchaininfo and check the value of the initialblockdownload field. If it is true, BItcoin Core is still syncing. If it is false, it is done syncing (or very very close to done).


2

I am new to cryptocurrency development, and I have noticed that Bitcoin has an official wallet for both Desktop and Mobile (correct me if I am wrong). There is no official Bitcoin wallet. My question is, does Bitcoin have an official explorer and value API (such as Bitcoin to fiat conversion) too? There is no official Bitcoin explorer or value API. If ...


2

I don't know if there is an unlimited and free service as you looking for, but you can easily setup your own Bitcoin node and make all the calls you want, in addition it helps the Bitcoin network to be healthier and safer. https://bitcoin.org/en/full-node https://github.com/bitcoin/bitcoin/blob/master/doc/REST-interface.md


2

If you plan to using any API extensively I suggest installing bitcoin core and using RPC provided.


2

The vast majority of database entries are generated by the wallet and do not contain anything that the user can enter. Things that users can enter are generally validated prior to writing to the database, e.g. descriptors imported with importdescriptors must be valid descriptors before they are written. The sole exception are labels which, by definition, ...


2

I tested your code and apparently the code is right but your Hex string is wrong. The API response is as follows: data: 'sendrawtransaction RPC error: {"code":-22,"message":"TX decode failed. Make sure the tx has at least one input."}' Make sure that you have right Hex to post your tx. :)


2

As the API documentation specifies, the response of /rawaddr/$address will only return up to 50 transactions. There is an optional parameter &offset=n which let's you skip the first n transactions. The first call, you get fifty transactions. Then you add the parameter offset=50 to skip the first fifty transactions in the response to the second call. This ...


2

Easy enough with your own Bitcoin node. for height in {1..500000}; do echo "$height `bitcoin-cli getblockhash $height`"; done


2

Keep in mind that the configuration file is not automatically created; you can create it using your favorite text editor. By default, the configuration file name is bitcoin.conf and it is located in the Bitcoin data directory, but both the Bitcoin data directory and the configuration file path may be changed using the -datadir and -conf command-line options. ...


2

You didn't provide a lot of information on the scope of your needs, but it depends on what you're trying to find a solution for. BitGo is not a payment processor, it's a business-to-business service provider. On their website, under "Who We Serve" they list "Asset Managers, Banks, Exchanges, and Payment Processors" etc. as their ...


1

BitGo generally uses 2-of-3 multisig transactions. That means that when you send a transaction, you must provide one of the signatures, and BitGo will add the second signature once you submit the partially signed transaction to the BitGo API. Since you need to use your own private key material to generate a signature, the signature has to be created client-...


1

Trezor offers a "passphrase" or "hidden" wallet feature to fully exploit the bip39 protocol to generate addresses. Think of this as the "salt" in the hashing algorithms. This means that your mnemonic phrase would have an additional security layer by adding this "salt" or "passphrase" to your privare key. This ...


1

If you look at this block in a blockchain explorer such as blockchair, it shows the transaction as { "txid": "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098", "hash": "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098", "version": 1, "size": 134, &...


1

The coinbase output (the destination of the mining reward) is freely decided by the miner. In early block, this destination was Pay to Pubkey(P2PK). Since P2PK is not assigned an address, no address is shown. The coinbase transaction in the 700,000 height shows the address because the destination is P2WPKH.


1

You can get this data by running a bitcoin-core full node with txindex=1 in the configuration file. You can then use the command bitcoin-cli getrawtransaction (TX_HASH) to get the raw transaction info. For example: $ bitcoin-cli getrawtransaction 60183ab915f2f4b0190605f98bd0e9f8eafe13a1c902b3ae87ecd0dfc8a599a0 ...


1

You, or someone else working for you, registers to some service, makes transaction/s and see which bitcoins get merged with, or from which address it was withdrawn. There is probably no easier way how to discover names other than this. Source: Section "How are names discovered?" at WalletExplorer.com "FAQ: What is on this site?".


1

I am not sure what API's you are looking for information on. The most common are the bitcoin core API's https://developer.bitcoin.org/reference/rpc/ you have to have a full node running on your machine, but if you just developing you can run core in the testnet or regtest mode so you don't have to download everything you can download core from here. from ...


1

You could use www.tatum.io to do all of that. We provide blockchain infrastructure and a simple, unified REST API that supports over 20 blockchains. You can do everything with a free plan, and upgrade to a paid plan when you need more that 5 API requests per second.


1

getaddressinfo is a wallet RPC. It reports the information a specific wallet has about a receiving address it created. Without wallet, there is no information. It seems to me that it should not be that difficult to dump all the information that the local blockchain currently has for a given address, without the need for a wallet. The local blockchain ...


1

To answer your question specifically: ideally query your own Bitcoin full node with gettransaction (possible if you can at least import xpubs to watch only wallets) query public block explorers query public Electrum servers On a broader note though, your problem seems to be already solved by open source tools like BTCPay Server or CypherpunkPay.


Only top voted, non community-wiki answers of a minimum length are eligible