Hot answers tagged

30 votes
Accepted

How do I use walletnotify?

First you must configure your bitcoin.conf file for JSON-RPC rpcallowip=127.0.0.1 rpcuser=yourusername rpcpassword=reallystrongpasswordthatsnothis rpcport=7788 walletnotify=/home/scripts/transaction....
user avatar
  • 3,030
17 votes

Anyone know of an API I can get historical price time series for multiple coins

I am developing the ccxt cryptocurrency trading library, check it out on GitHub: https://github.com/kroitor/ccxt It is a library for cryptocurrency trading and e-commerce with support for many ...
user avatar
17 votes
Accepted

What are the most comprehensive APIs for cryptocurrency market data?

Most exchanges offer API solutions for market data. Here are some examples: GDAX Bittrex Kraken WAVES DEX CryptoCompare has an API that aggregates data from many exchanges, and they also offer many ...
user avatar
11 votes
Accepted

How to estimate optimal fees for transaction in bitcoind?

The other answer is outdated. estimatefee is deprecated. You should use estimatesmartfee Please use estimatesmartfee for more intelligent estimates. Estimates the approximate fee per kilobyte ...
user avatar
10 votes

How to build a bitcoin trading bot

Building trading bots that interact with the exchanges is very similar to interacting with other RESTful APIs. Basically, you make query objects to whichever exchange you like to use. Here is a simple ...
user avatar
  • 111
9 votes

How to get an address's balance with the bitcoin client?

import all address using "importaddress" you can get balance using "listunspent", but you must sum all unspent amount per an address.
user avatar
8 votes

How to estimate optimal fees for transaction in bitcoind?

Have you tried using the estimatefee RPC call? This will calculate the amount needed per kilobyte. For example calling bitcoin-cli estimatefee 2 would provide a fee per kb to try to get confirmed ...
user avatar
  • 5,176
8 votes

Anyone know of an API for RSI and other indicators?

I had the same problem, couldn’t seem to find a good API that supported most of the popular indicators, and at the same time covered all the exchanges. So I decided to start up a project for this. So ...
user avatar
  • 91
7 votes

How to check Bitcoin wallet balance without any API

If you are not going to use a 3rd party API, you'll need to run a node and add each address you want to query as a watch only address. If you are looking to create a database with all addresses, ...
user avatar
  • 5,176
7 votes
Accepted

Anyone know of an API I can get historical price time series for multiple coins

Found the data on crypto compare const endpoint = 'https://min-api.cryptocompare.com/data/histoday?aggregate=1&e=CCCAGG&extraParams=CryptoCompare&fsym='+ ticker.toUpperCase() +'&limit=...
user avatar
7 votes
Accepted

Bittrex API rate limit

This question has been asked in the #api-developers channel of the Bittrex Slack Group a few times. Here's the important fragment of the discussion with somewhat an answer to our question. July ...
user avatar
7 votes

can you use blockchain.info instead of hosting bitcoind for a website

You probably could - blockchain.info has certainly taken steps towards letting you, and provide a reasonably complete API, along with websocket streams for real time data. That said, you probably ...
user avatar
  • 16.4k
6 votes
Accepted

Where can i get all the commands with descriptions for Bitcoind on my linux server?

These days the most thorough and handy guide for the Bitcoin Core RPC commands is the bitcoin.org developer reference page.
user avatar
6 votes
Accepted

BitFinex API call returns 400 bad request

Finally discovered the fix: hexhash has to be lower case: string hexHash = BitConverter.ToString(hash).Replace("-", "").ToLower();
user avatar
6 votes
Accepted

Self-hosted Bitcoin wallet for Linux with API?

did you look at bitcoind? It does everything you are looking for. -port= Listen for connections on (default: 8333 or testnet: 18333) -walletnotify= Execute command when a wallet ...
user avatar
  • 178
6 votes

How are Fees Charged at Kraken?

How are fees charged? They are charged in the currency fee set during a trade. Due to a discreet nature of trade matching process, it's rather tricky to give a definite answer on how each individual ...
user avatar
  • 1,672
6 votes
Accepted

What's the POST endpoint to broadcast a transaction in copay's server?

Multisig and singlesig wallets use the same flow. A Tx proposal need to be created in singlesig wallets also. Copay syncronize across devices, so you can have a non-signing copayers in a 1-1 wallet ...
user avatar
  • 203
6 votes
Accepted

what is the Volume and BaseVolume reported from bittrex API?

Volume is the amount traded in that altcoin over the past 24 hours. In the case of BTC-DGB, this is the amount of DGB that has been traded in 24 hours. BaseVolume is the total value traded in the ...
user avatar
6 votes
Accepted

How Do HD Wallets Keep Track of all accounts?

In general, HD Wallets use the following logic for how many addresses to query, and when to stop: Start with account 0, generate gap limit number of addresses (usually 20) Check for any transactions ...
user avatar
  • 16.4k
6 votes

How should I handle cases like this where the documentation for Bitcoin Core states one thing, and the actual program does something else?

In the example RPC results, it will show whether the result is a JSON array by including brackets [] or it will show if it is a JSON object (associative array) by using curly brackets {}. If the ...
user avatar
  • 166
6 votes
Accepted

API for large number of queries to different addresses every few minutes

You can use a self-hosted (but low-burden!) instance of Esplora. Blockstream is also exposing an instance for free (at the moment) at blockstream.info. Disclaimer: if you take part of Bitcoin as an ...
user avatar
5 votes
Accepted

How to get the Input Address from vin where only a txid is given (Insight-Api)

First, use the API to get the information on the txid. /api/tx/e3f0e88ce224d342a0189c1b9d2fd488d8bda2f303dbe1e1dbbaa5f51d9f4a53 This result will include all of the details you're looking for. Here ...
user avatar
  • 4,327
5 votes

Anyone know of an API I can get historical price time series for multiple coins

http://www.cryptocoincharts.info Advance API to more than 100 exchanges: cryptocurrency pricing, OHLC and volume data from multiple exchanges. BTC38, BTCC, BTER, Bit2C, Bitfinex, Bitstamp, Bittrex, ...
user avatar
  • 59
5 votes
Accepted

Valid asset_pair for Kraken.com

the list is found here: https://api.kraken.com/0/public/AssetPairs Also here's a list of assets: https://api.kraken.com/0/public/Assets
user avatar
  • 64
5 votes
Accepted

Does Bitcoin RPC API have a realtime websocket?

Since you only care about transactions involving your wallet, you can specify the walletnotify option in your bitcoin.conf or your bitcoind start command. Since walletnotify allows you to execute an ...
user avatar
  • 16.4k
5 votes

what is blockchain.info testnet api url?

Have you checked https://testnet.blockchain.info/api? For instance, to get a raw tx: https://testnet.blockchain.info/rawtx/tx_id
user avatar
  • 2,692
5 votes
Accepted

Bitcoin-cli responding but not curl

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 ...
user avatar
4 votes

How to get an address's balance with the bitcoin client?

"We'll hopefully soon get support for (...) watch-only wallets, where you can just add addresses you'd like to track, without having their keys." ...
user avatar
4 votes

How to fix CoinBase pay too much error

You should not be tampering with any code that has anything to do with determining block validity if you don't thoroughly understand the security model that proof of work coins use. i = getrandint(...
user avatar
4 votes
Accepted

Can I use Blockchain API to get number of transactions at BTC address?

You sure can! Send a GET request to this address: http://blockchain.info/address/$bitcoin_address?format=json You'll get back something like this: { "hash160":"...
user avatar
  • 28.6k

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