First you must configure your bitcoin.conf file for JSON-RPC
Where transaction.sh is some bash program. One approach is to have it make an http request to some process to notify you of the deposit. An example:
By default, what is maintained by the 0.8 blockchain engine is:
A database with all block headers, and the positions on disk for each block
A database that represents all unspent transaction outputs (UTXOs), indexed by txid, at the current tip of the block chain
Undo files that allow rewinding the effects of blocks on this set of UTXOs.
Most exchanges offer API solutions for market data. Here are some examples:
CryptoCompare has an API that aggregates data from many exchanges, and they also offer many query parameters. Link: CryptoCompareAPI
Additionally, many block explorers provide APIs for blockchain account information.
This ZChain Playlist shows how to ...
I am developing the ccxt cryptocurrency trading library, check it out on GitHub:
It is a library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs.
With it you can access market data and trade bitcoin, ether and altcoins with more than 70 (!!!) ...
All historical data from any exchange available at Bitcoin Charts: Markets API
Historic Trade Data
Trade data is available as CSV, delayed by approx. 15 minutes. It will return the 2000 most recent trades.
Returns CSV with columns: unixtime,price,amount ...
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 example: https://github.com/AdamCox9/nickelbot/blob/master/adapters/poloniex/poloniex_lib.php
Nickelbot is development platform written in PHP that has all ...
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 needed for a transaction to begin
confirmation within nblocks blocks. Uses virtual transaction size of transaction
as defined in BIP 141 (witness data is ...
You can get any price quotes, in a JSON format, using these kinds of endpoints:
The structure of the endpoint is https://btc-e.com/api/2 and then currency_currency and then /ticker.
Hope that helps!
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 within 2 blocks.
Though the terminiology is unclear, in code "label" and "account" are the same thing:
importprivkey function (src/rpcdump.cpp):
from getnewaddress function (src/rpcwallet.cpp):
if you want fast http ticker use the new fast_ticker :
and you will get 1 second only cached minimalist ticker ( last )
if you need more ( low, high, volume ) you have the normal ticker, most probably ...
Bitcoin does not have one single buy and sell price. Bitcoins are exchanged on many different exchanges, each keeping track of their own market price.
However, BitcoinCharts.com has a useful API that summarises many of the largest exchanges according to their trading volume. You could use that to display the Bitcoin price on your website.
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, similar to a block explorer website, you'll need to parse the blockchain using something like abe, and then continually update your database for each new transaction....
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=365&tryConversion=false&tsym=' + currency.toUpperCase();
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 2nd, 2017
seriously guys.. the rate limit.. what is it..
It varies by API call.
If you hit the limit, you are abusing it. If you hit ...
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 shouldn't - Bitcoin, and other cryptocurrencies, are designed to be decentralized and trustless. By using Blockchain.info, or any other API provider, you leave ...
This will be possible using the 'raw transaction interface' that was added recently and scheduled to be part of the 0.7.0 release.
With listunspent you can request a list of available coins sent to a particular (wallet) address, and with createrawtransaction you can build a transaction that consumes specified coins. Finally, sendrawtransaction can be used ...
Problem solved. The error is caused by too many decimal places in the rate parameter. It would be good if the API returned a more informative error message though.
There is an API call to find the correct maximum number of places, as well as the minimum order for each currency pair. https://btc-e.com/api/3/info returns a list of currencies and information. ...
Since you originally stated that you wanted to write a trading bot, perhaps you will find the following library useful:
"XChange is a Java library providing a simple and consistent API for interacting with over a dozen Bitcoin exchanges providing a consistent interface for trading and accessing market data" (according to their GitHub page)
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 transaction changes (%s in cmd is replaced by TxID)
-alertnotify= Execute command when a relevant alert is received (%s in cmd is replaced by message)
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 that submit proposals, for later approval.
The flow is:
create => publish => sign => broadcast.
You can check the official client https://github.com/bitpay/...
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 in those addresses
If there are no transactions, stop searching for new addresses and accounts
If there are transactions, generator gap limit more from the ...
You can for example check the Block Explorer's info about a given transaction. For example, given transaction 1c480aad976c61b51ae47401a554b09f65efe6f95f644041f838d9129e09167c, you can see that the only input was associated with address 1HnjAo2nbHGFDto86smcFiF3uUwfvNJ4cS.
However, generally you should avoid using transaction inputs for basically any purpose -...
The BOP Enterprise Bitcoin Server is an open source full node implementation with remote (that is client side) wallet. The server downloads the block chain does the transaction and block validation and routes transactions signed at the client.
The client connects to the server via a message bus. There is a Java and other APIs available with added client ...
You can query the unspent outputs of an address with this:
You can get the transaction history for an address with this:
For more information see http://blockchain.info/api/blockchain_api