We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [api]

This tag should be used for questions related to APIs offered by any Bitcoin related service. An API is an Application Programming Interface and services often have APIs available for developers to write software which accesses information offered by the service.

Filter by
Sorted by
Tagged with
30
votes
5answers
32k views

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

I want to see the balance of some address using bitcoind. I set txindex=1 and did a -reindex to get all transactions indexed. But still, there doesn't seem to be a way to get balances of an address. ...
18
votes
1answer
12k views

How do I use walletnotify?

I have bitcoin daemon and I want to use the walletnotify option with a json-rpc call. Some of the examples use a "transaction.sh" file for walletnotify. What is it for? What do I have to write in ...
5
votes
2answers
1k views

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

I like to find the Input Address and Amount for a vin like this: "vin": [ { "txid": "e3f0e88ce224d342a0189c1b9d2fd488d8bda2f303dbe1e1dbbaa5f51d9f4a53", "vout": 1, "...
4
votes
1answer
819 views

How Do HD Wallets Keep Track of all accounts?

If a HD Wallet generates 1,000 accounts for example. How would they keep track of all of the account's balances, if someone for example, paid into the 455th account, they would want to update the ...
5
votes
1answer
3k views

Monitor all transactions on bitcoin network - API

I am searching for a solution to monitor all bitcoin transactions (or for first ties at least for addresses inside my bitcoin client). I found http://blockchain.info/api_websocket is this really ...
5
votes
3answers
3k views

Checking/polling a balance of an address in Electrum via the command line/RPC

Suppose, I've dynamically -- via the command line/RPC -- created an address or payment_query in Electrum. And saved its details in a database along with the amount of bitcoins I expect to receive. ...
17
votes
14answers
43k views

What are the most comprehensive APIs for cryptocurrency market data?

I'm looking for a well documented, easy to use API that provides data on the majority of cryptocurrencies. That data should include the 1 hr, 24hr, and 7 day price changes, as well as the entire ...
7
votes
5answers
3k views

Is there a remote, trustless bitcoin API that doesn't require anything (blockchain/SPV headers) to be stored locally?

This question asks about how to work with bitcoin via an API without requiring a local blockchain. The only answer is about blockchain.info's JSON API, but it appears that unlike the web version of ...
6
votes
3answers
2k views

How to know when a payment has been received by bitcoind?

I want to create a website which involves the creation of a new single-use address that a user would send bitcoins to. I'd like to know programmatically when the user has sent bitcoins to the address ...
7
votes
2answers
2k views

Calculating address balance

Is there some method how you can calculate the balance of an address without resorting to web-based API's? When I import a private key the rescanning of bitcoind takes hours. I know to get a balance ...
5
votes
3answers
5k views

Bitcoin's real-time Buy and Sell price API

What is the API to get Bitcoin's real-time Buy price and sell price on my site? and how can get it from to implement in my website developed in PHP.
2
votes
2answers
1k views

How trade engine works? [closed]

How cryptocoin trade engine works? Is there any open source project available other than buttercoin. I want to build a simple trade engine in ruby on rails for cryptocoins. what are the essential ...
2
votes
2answers
1k views

accept bitcoin payments for orders without 3rd party software

I've been searching for an open-source alternative to blockchain.info's Receive Payments API (https://blockchain.info/api/api_receive). I want to run bitcoind on my own server and have payments ...
2
votes
2answers
636 views

Accepting Bitcoin payments without the full blockchain or third party APIs?

I want to make a basic program/script that utilizes Bitcoin payments, but I don't have the storage space to sync with the entire blockchain, and I don't want to be dependent on a third-party API like ...
0
votes
4answers
8k views

How to get the list of transactions of input/outputs for a bitcoin address in JSON format?

Is there an example of how to get all the transaction data for a bitcoin address in json format?
1
vote
1answer
2k views

where to get cryptocoins data

i want to create an API. where do Crypto Currency exchanges get their data from, Like the exchange rate, difficulty of coins, blocks and rewards. I want to create a website which displays all the ...
1
vote
1answer
36 views

Electrum address syncronization

I need to periodically check the balance of a number of bitcoin addresses (a few tens or hundreds addresses). I noticed that Electrum may syncronize a thousand or more imported addresses in a matter ...
20
votes
5answers
41k views

How to build a bitcoin trading bot

I'd like to experiment with bitcoin technology, crypto currency, and encryption. I thought the best way to accomplish that is building my very own bitcoin trading bot. It seems like a daunting task, ...
16
votes
4answers
37k views

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

I'd like to build some historical price charts, to use in my cryptocoin portfolio tracking app, using time series data (with HighCharts js). Anyone know of an API that provides this price data, ...
5
votes
2answers
5k views

Bitcoin API - How can I identify new incoming payments?

Good afternoon, I am struggling a bit to receive Bitcoin payments at my online store. So far, I have installed bitcoind in my system and created a set of receiving addresses, and now I face the ...
10
votes
3answers
5k views

How to estimate optimal fees for transaction in bitcoind?

As I understand, with the network congestion it's sometimes advisable to set a higher fee to process a transaction within a block or two. Is there some way to estimate the optimal fee through calls to ...
9
votes
1answer
552 views

Importprivkey's “label” - is it the same as an account?

The "importprivkey" API call allows one to import a private key and save it with a label. Is the "label" in the API call synonymous with an account used in the wallet?
4
votes
1answer
2k views

JSON RPC call from webpage to Bitcoin Core

I want to make API calls to my Bitcoin Core wallet from my webpage but when I try to connect it gives me Internal Server Error I'm using easybitcoin.php JSON from Github. I'm trying with this JSON ...
3
votes
1answer
773 views

Using bitcore to create a transaction with two addresses and change address

I'm playing around with bitcore transactions and multi-sig transactions and was wondering how to send a transaction to more than one address, and keep the change. Currently when I try to send the ...
9
votes
2answers
17k views

Bittrex API rate limit

Does Bittrex have a limit on how many requests I can do? I cannot find that info in their documentation. I only find their Announcement from 2014 which says: Api requests will be throttled based ...
8
votes
4answers
3k views

Are there any C# wrappers for the Bitcoin REST API?

Are there any C# wappers that take an OOO approach to the Bitcoin REST API, and encapsulate it in an easy to use format?
6
votes
1answer
3k views

BitFinex API call returns 400 bad request

Trying to get authentication with BitFinex to work. Docs here: https://www.bitfinex.com/pages/api Say the client wants to make a request to POST https://api.bitfinex.com/v1/order/new ...
5
votes
1answer
1k views

Fees for bitcoind sendmany, limits for number of end addresses

I have two questions, both about sendmany. First, is there any limit on how much transactions can I send with sendmany? (Apart from bash's limit with maximal parameter length.) Is sending about 500 ...
4
votes
1answer
2k views

Bitcoin Charts API Data

So I'm trying to learn how to work with an api, and how to get bitcoin historical price data. Ideally, I'd like all of it, and the nice gui that they have on the site for displaying the charts (but I ...
3
votes
2answers
753 views

Is there any useful documentation on using the MtGox API with node.js?

I have been looking for some help building a platform using node that works with the MtGox api. It seems easy to make request, but I am confused about how to pass a parameter. Right now my code ...
1
vote
1answer
4k views

Bitcoin Client API-RPC: Efficient way to list transactions from a list of addresses

In the API CallList: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list You can pass an address as a parameter to "listtransactions" to get the latest list of transactions from an ...
0
votes
3answers
3k views

Anyone know of an API for RSI and other indicators?

I am looking for Relative Strenght Index and other market indicators API's for cryptos. I don't think TradingView provides one but maybe you know one?
6
votes
1answer
10k views

what is the Volume and BaseVolume reported from bittrex API?

For example in https://bittrex.com/api/v1.1/public/getmarketsummaries or if you subscribe to the ws feed you get sent the following type thing. { "MarketName": "BTC-ANS", "High": 0.0031, "Low": ...
4
votes
1answer
2k views

What are midstate and hash1 used for in mining?

The first answer here does a good job explaining how the SHA-256 function requires more than one input (an initial one is specified by to the SHA-256 specs). As far as I understand it, the "midstate" ...
3
votes
1answer
1k views

Callback not working in program using the blockchain api

I am trying to create automated receive Bitcoin payments via Blockchain API. I have my API key, xpub, everything. I'm using PHP. Here is the part of my code for generating wallet address: $scrt = ...
2
votes
1answer
751 views

How does one submit a transaction to the network using the blockchain.info API?

I am currently working on a project which makes use of the blockchain.info api (php). Could anybody please tell me how to use this api to submit transactions to the network?
2
votes
1answer
252 views

BIP 38 Implementions for Altcoins?

Trying to identify implementations for creating BIP 38 encrypted private keys for alternative coins to spark collaborative open source discussions to standardize BIP 38 to support altcoins. Please ...
2
votes
2answers
465 views

What options do I have to avoid API gap limit? I am using xpub keys

I am building a app, and the design is, the "welcome page" has a qr code allowing the user to purchase a single-use of the app. Blockchain.info conveniently allows you to use xpub to generate ...
1
vote
0answers
266 views

Get fees for each transaction in a block without too many API calls

Using Blockchain.info's API, my current approach is to query the endpoint for a block then to collect all the transaction hashes within that block: https://blockchain.info/rawblock/$block_hash Then ...
1
vote
1answer
195 views

Negative volumes returned from MtGox websocket api request

I am using MtGox's websocket api to construct an order book. The trouble I'm having is that every once in a while, the depth event will return an JSON object with negative volume and negatie ...
1
vote
1answer
287 views

Does createrawtransction accept scriptPubKey and redeemScript as inputs?

According to the built-in RPC documentation the signature for createrawtransaction is: createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}. Gavin in his example on 2-of-3 ...
0
votes
2answers
897 views

Pushing tx to the network via AJAX, without installing bitcoin

Is there any web service anywhere that allows me to push raw transactions to the network via an ajax call? Blockchain's pushtx only works if you copy/paste so I can't build around it.
0
votes
1answer
1k views

listreceivedbyaddress returns empty list

I tried bitcoind getnewaddress, but bitcoind listreceivedbyaddress still returned empty list How to create a new address for receiving payments?
0
votes
2answers
3k views

Binance API SIGNED GET request error code -1100 on signature parameter

I am trying to load my crypto portfolio into Excel so I can use its easy analysis functionality on my trades. However, I'm having trouble connecting to the API using VBA's WinHttpRequest. I use the ...
0
votes
1answer
288 views

SPV Wallets vs API Wallets - Pragmatic

From what I know, the only advantage of an SPV node compared to a API Node, is the increase in privacy. SPV nodes take up more bandwidth, in order to stay synced with the current chain and in some ...