Questions tagged [api]

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
22 votes
2 answers
18k 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 ...
M.R's user avatar
  • 501
36 votes
6 answers
48k 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. ...
Steven Roose's user avatar
  • 11.8k
1 vote
3 answers
889 views

How to retrieve total BTC held in Ledger wallet

I'm new to Ledger. As a software engineer, I'd like to write my own app (for my own personal use) that is sort of like a more basic version of Ledger Live. I want to show my balances on my own private ...
Ryan's user avatar
  • 143
8 votes
3 answers
6k 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. ...
Kolayn's user avatar
  • 81
7 votes
2 answers
2k 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, "...
thepiwo's user avatar
  • 113
5 votes
1 answer
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 ...
Mark's user avatar
  • 153
17 votes
14 answers
47k 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 ...
zero_cool's user avatar
  • 363
8 votes
5 answers
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 ...
ripper234's user avatar
  • 26.5k
7 votes
3 answers
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 ...
Sanjay's user avatar
  • 205
7 votes
2 answers
3k 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 ...
Maestro's user avatar
  • 1,967
6 votes
5 answers
8k 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.
Jagdish Ram's user avatar
4 votes
2 answers
911 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 ...
user avatar
2 votes
3 answers
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 ...
bvpx's user avatar
  • 1,132
2 votes
2 answers
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 ...
Jsd's user avatar
  • 338
1 vote
1 answer
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 ...
sarah's user avatar
  • 151
0 votes
6 answers
14k 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?
Patoshi パトシ's user avatar
20 votes
5 answers
45k 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, ...
Wei's user avatar
  • 201
18 votes
4 answers
43k 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, ...
Vinnie James's user avatar
11 votes
6 answers
6k 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?
makerofthings7's user avatar
11 votes
3 answers
7k 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 ...
ThePiachu's user avatar
  • 43k
10 votes
3 answers
18k 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 ...
carpics's user avatar
  • 203
9 votes
1 answer
625 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?
ThePiachu's user avatar
  • 43k
6 votes
3 answers
22k views

Anyone know of an API for RSI and other indicators? [closed]

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?
Wizzardzz 's user avatar
6 votes
1 answer
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 ...
steve cook's user avatar
6 votes
1 answer
11k 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": ...
Flo Woo's user avatar
  • 165
6 votes
3 answers
17k views

Historical BTC data in JSON

As of now, the only API I can find that serves historical data is https://blockchain.info/charts/market-price?timespan=60days&format=json. It only uses USD, and I need to serve non-USD data. My ...
Christopher Sardegna's user avatar
5 votes
2 answers
6k 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 ...
flaab's user avatar
  • 854
5 votes
1 answer
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 ...
Karel Bílek's user avatar
  • 2,685
4 votes
1 answer
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" ...
ConstableJoe's user avatar
4 votes
1 answer
387 views

What is the difference between secp256k1_ecmult_gen and secp256k1_ecmult?

libsecp256k1 has two implementations, secp256k1_ecmult in ecmult.h and secp256k1_ecmult_gen in ecmult_gen.h, to multiply the points of an elliptic curve. secp256k1_ecmult_gen supports simple ...
Shigeyuki Azuchi's user avatar
4 votes
1 answer
3k 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 ...
Carlos De la Garza's user avatar
4 votes
1 answer
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 ...
Ethan's user avatar
  • 151
4 votes
1 answer
537 views

How do I use Bitnode API?

I just started running a full node and was wondering how to use these commands to verify my node: https://getaddr.bitnodes.io/api/ Specifically, what command line or IDE do I need to type these ...
btcnodebeginner's user avatar
3 votes
4 answers
5k views

How can I generate a bitcoin address?

Is there any way to generate bitcoin addresses other than the Blockchain API? (given the fact that it is not public)
Coup de Grace's user avatar
3 votes
2 answers
762 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 ...
Andrew Font's user avatar
3 votes
1 answer
469 views

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

I have an application that needs to makes queries to get address balances and transaction data from Bitcoin. What are some possible solutions to this? It would be great if I didn't have to manage a ...
Patoshi パトシ's user avatar
3 votes
1 answer
2k 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 = ...
Fero's user avatar
  • 31
3 votes
1 answer
938 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 ...
rjmacarthy's user avatar
3 votes
2 answers
1k views

How to get info for public address from bitcoin-cli + local db? (Can it be done without creating a wallet?)

I just started running my own full node. IBD is finished, and I'm now learning how to use bitcoin-cli. First I would like to extract all the available information for one or more public addresses ...
kjo's user avatar
  • 145
2 votes
1 answer
2k 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?
user31070's user avatar
2 votes
1 answer
336 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 ...
skaht's user avatar
  • 3,047
2 votes
2 answers
889 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 ...
patrick's user avatar
  • 223
2 votes
2 answers
2k views

What exactly is the "vout" field?

This is driving me nuts. Through trial-and-error, asking numerous people and attempting to read endless articles and manuals, I've come to the conclusion that the "transactions" listed by ...
S. C.'s user avatar
  • 21
1 vote
1 answer
90 views

Is the `addmultisignature` API call dependent on order of public keys in the array? Or is it lexicographically sorted?

Say Alice and Bob are part of a partnership business that accepts Bitcoin. They store all their main funds in cold storage until the end of 3 months, when they cash out and use a new address. This ...
Expectator's user avatar
1 vote
1 answer
383 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 ...
Doug Peters's user avatar
  • 1,366
1 vote
1 answer
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 ...
samol's user avatar
  • 123
1 vote
4 answers
5k views

Market Cap API? [closed]

I am using CryptoCompare's API and it gives me volume data, but I am wondering where I can get market cap / circulating supply data. Do any reliable API's provide this?
vikzilla's user avatar
  • 119
1 vote
0 answers
336 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 ...
timothyylim's user avatar
1 vote
1 answer
203 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 ...
Loourr's user avatar
  • 3,050
0 votes
1 answer
60 views

What's the point of Multi Signature Addresses?

When an attacker has access to the private key of the wallet, he can dump the private keys of every address used for the multisign address(es). So, what's the point of multi sign addresses when there'...
Otijun's user avatar
  • 3