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
12
votes
7answers
9k views

List of blockchain explorer APIs? [closed]

I'm gathering a list of Bitcoin / Blockchain APIs. I mean web (REST) APIs that allow you to do basic blockchain queries through http(s) API calls, such as: getting the balance on an address, getting a ...
-1
votes
3answers
41 views

How to deal with situations when the buyer tries to gain the system? (online shop with price in fiat, BTC payments also possible)

I'm a developer. I have a custom online store, with code I wrote myself, where I sell products in fiat money. I plan to introduce payments in bitcoin. Issue: the customer may try to gain the system by ...
0
votes
1answer
120 views

How to know Block height when a transaction entered Mempool?

I'm hosting a Listening Bitcoin Node in Capital of Pakistan. I want to know the Block height when Transaction entered the mempool. Right now I'm using the time from the Json format of the Transaction ...
0
votes
1answer
1k views

Blockchain API whitelist all IP addresses

I am currently trying to implement the blockchain API in my application. I have done this successfully however, I am having trouble whitelisting IPs. Each time a user accesses the app with a different ...
0
votes
1answer
142 views

CryptoCompare API gives wrong historical daily OHLC data

I am trying to use CryptoCompare to get historical daily OHLC data, but the data I get seems to be wrong. For example, the following query (timestamp=1507248000) will give you data where 'open' (66.43 ...
1
vote
2answers
241 views

How can you create a transaction with multiple inputs from the Blockcypher API?

For example, I have two addresses and each of them has received 1 BTC. Now, I want to transfer 1.5 BTC to another address. How can I achieve this using the Blockcypher create transaction API?
1
vote
1answer
67 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 ...
5
votes
3answers
4k views

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

Just installed bitcoind on my server and wanted to find a cheat sheet for the bitcoind commands. Where would i find them with a description and example of what each command does?
0
votes
0answers
21 views

Bitcoin Core GUI gettransaction implementation

The cli users have the option to "getrawtransaction txid true" in order to find valuable information about a transaction that could be theirs. This is a very powerful api call that effectively ...
2
votes
0answers
44 views

API for raw Bitcoin latest block data?

I would like to get the full raw data on the latest bitcoin block. I was hoping I could get this from an API. I looked at blockchain.com's API's but these don't seem to provide the full data for each ...
1
vote
0answers
72 views

Authentication error with Blockchain Wallet API [closed]

I successfully integrated the blockchain-wallet-api into an application which is currently on production. The challenge I'm having is that even though I was able to disable email login authentication ...
3
votes
3answers
4k views

Is there a public repository/api of coin/token logos

I am developing an cryptocoins related app and I would like to display cryptocoin logos there for all coins available for trade. Is there an API out just a publicly accessible repository that would ...
4
votes
2answers
2k views

Which API provides the logo for a cryptocurrency?

I've been searching for an API that returns the logo/image for a cryptocurrency. API's like CoinCap.io and Bittrex don't return this information in the response. Is there any public API which provides ...
0
votes
5answers
11k 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?
4
votes
2answers
8k views

BlockChain.info testnet wallet and API

Does blockchain.info provide wallets and API service for testnet? This information is quite hard to find from their site.
1
vote
0answers
36 views

Bow to know how much amount my wallet sent with Bticoin-core API

I have updated bitcoin-core from version 0.16 to 0.17 and found that there is no way to see how much amount I sent only (excluding received amount) from my wallet. With bitcoin-core version 0.16, I ...
0
votes
1answer
377 views

JSON with price AND daily change? [closed]

May be someone could point me towards a public API with Bitcoin price AND 24h change? Like $7'602 +2.3%? All APIs I've found (like coindesk's) only contain price, not change :(
1
vote
1answer
1k views

How to integration Blockchain Payment API in Asp.Net?

I am new to using the Blockchain API. I have tried several times to use https://blockchain.info/merchant/$guid/payment?password=$password&second_password=$second_password&to=$to&amount=$...
1
vote
0answers
78 views

Getting mass addresses current balance

How can i get the current balance of massive addresses? I'm getting address balances now on blockchain.info but I need to check about 1000 of addresses in one minute. The issue is that they blocking ...
0
votes
1answer
103 views

Is there such a service as an unlimited Bitcoin wallet with an API?

Well, I did tons of research and currently I'm using bitcoinlib for python to have a wallet which should be able to hold over one million addresses and occassionally broadcast transactions. It has ...
1
vote
1answer
259 views

Unable to sendcoins using bitgo express apis

Trying to access API URL: https://test.bitgo.com/api/v2/tbtc/wallet/walletid38u5348t9yj958jtv985j89g5/sendcoins But every time getting same response: { "error": "You have called a BitGo Express ...
0
votes
1answer
34 views

How do I ask other nodes for their stale blocks?

I want data on as many stale blocks as possible. Is there a way to ask peer nodes to run "getchaintips" and get their results? Previously, I used Blockchain.info's API call for this, but it seems ...
3
votes
1answer
226 views

Get invoice amount from payment request - LND REST API

I'm using the REST API of my LN node to generate and pay invoices. I would like to know how to get the invoice amount/value in sats from the payment request I receive. I found this : https://api....
4
votes
3answers
15k 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?
2
votes
1answer
315 views

How to use blockstream's REST api to retrieve JSON output on an address?

I have a bitcoin address and I want to get the JSON format of the balance using blockstreams api service. It's this one: https://github.com/Blockstream/esplora/blob/master/API.md#transaction-format ...
0
votes
1answer
949 views

How do I fetch the price data from CoinGecko? [closed]

I don't understand their API: https://www.coingecko.com/en/api It says: /simple/price Get the current price of any cryptocurrencies in any other supported currencies that you need. But then ...
32
votes
5answers
41k 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. ...
1
vote
0answers
50 views

Is there a way to test Blockchain.info APIs? [closed]

I'm trying to set up Blockchain.info web APIs to notify me when I receive a BTC payment: https://www.blockchain.com/api/api_receive So say, if I generate a receiving address as such: https://api....
0
votes
2answers
78 views

How can I know which user made which BTC transaction?

I am making an app, and I want my users to deposit BTC coin to my address which is an exchange address (I don't have the private keys). How can I know which user made which transaction? I have a way,...
6
votes
4answers
6k views

Is there an API that exchanges USD to Bitcoin?

I'm looking for an API that literally exchanges USD to Bitcoin, not only value. I've been looking all over for an exchange that accepts USD in it's API. I've found tons that will do Crypto => Crypto ...
1
vote
1answer
209 views

How to get the pool name from coinbase transaction?

Is it possible to retrieve the name of the pool that mined a block looking at the address in the coinbase transaction? For example, the address in the coinbase transaction of block ...
1
vote
1answer
50 views

blockstream API response

How do I determine if the current transaction is an outgoing or an incoming transaction from looking at the following API response? https://blockstream.info/api/address/...
2
votes
1answer
1k views

Passphrase header - Coinbase API

When trying to access the Coinbase API I am getting a header required: passphrase error. How do I create a passphrase? On the GDAX website, it states you create your passphrase when you create an ...
3
votes
1answer
207 views

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

Bitcoin Core's RPC API call "getnewaddress" is documented here: https://bitcoincore.org/en/doc/0.18.0/rpc/wallet/getnewaddress/ It claims: Result: "address" (string) The new bitcoin address In ...
1
vote
1answer
106 views

Why is there no decentralized Bitcoin trading API?

Since nobody has answered me the last 30 times when I asked for decentralized Bitcoin trading APIs, I can pretty safely conclude that it just doesn't exist. So that's why I now ask why this is. Don't ...
1
vote
1answer
1k views

Coinbase Pro historical data not working

I'm trying to pull historic data from the Coinbase Pro api using Python with the cbpro package. For some reason I either hit an error, or can only pull data from the last 350 days. If I run the ...
0
votes
2answers
697 views

Just-Dice or some other Gambling API?

Is there a gambling site where they expose an API for it? I want to build an application that leverages a crypto/bitcoin gambling site's bank roll. Just-dice seems to have the biggest bank roll to ...
0
votes
0answers
31 views

Getting Started with a Hello World Node.js App making an API call to bitcoin.org

I have been reading around trying to find where/how you can attach a SHA256 or MD5 hash (i.e. a small chunk of data) to a Bitcoin transaction, which led to OP_RETURN, but I have yet to see exactly how ...
1
vote
1answer
238 views

how do mining pools expose their stats?

Webistes like https://miningpoolstats.stream/ must communicate with the pools somehow. What protocol do they use to retrieve information such as the pool's hashrate and what blocks have been mined by ...
1
vote
1answer
45 views

How to get all cryptocurrencies real-time statistics with no limit and free? [closed]

How can we get almost all real-time information of cryptocurrencies (rates, transactions, live prices, blocks info, wallets, etc) for developing new cryptocurrency statistics and exchange reference (...
0
votes
0answers
46 views

Blockchain.com API and needed amount

I have installed Blockchain.com platform on our server and ran some codes successfully based on its Wallet APIs. Regarding to what is said here, as we are testing this platform, we charged the created ...
0
votes
0answers
33 views

How to run and access Blockchain.info platform on a remote server?

I've installed Blockchain.info local machine on a server and got an API key for it. But it seems it's designed to work only locally and on the port 3000. I need to call APIs from another server with a ...
0
votes
1answer
291 views

How can I generate preimage for lightning network invoice? Should I?

I'm developing API library for LND REST API. Method POST /v1/invoices requires r_preimage parameter. Should I generate it or LND can do it itself if I'll not specify it? If I should do that - how to ...
2
votes
1answer
193 views

What is QuoteAssetVolume and BaseAssetVolume?

This is a JSON result for a candle returned by an exchange API for ETHBTC: { openTime: 1517340600000, open: '0.10635000', high: '0.10742000', low: '0.10635000', close: '0.10687200', volume: ...
0
votes
1answer
60 views

Coinjoin API server possible?

Is there a protocol limitation (I suspect there is) that does not enable transactions across different platforms to access a 3rd party remote server (Chaumian server?) through API and create a ...
1
vote
1answer
77 views

what is exact meaning of some field of response of `getBlock` rpc api

I refer to this document for using getBlock rpc api. https://bitcoin.org/en/developer-reference#getblock { "hash" : "hash", (string) the block hash (same as provided) "confirmations" : n, (...
0
votes
0answers
27 views

how to know miner of each bitcoin block [duplicate]

Do you know from what kind of API I can get miner info per each block? I've run bitcoin mainnet, and I want to know who mines each block if possbile. I've googled and read many docs but I couldn't ...
0
votes
1answer
2k views

BTC Hash-Rate API

I'd like to get hash-rate of BTC from OKcoin' API(GET /api/v1/charts/:type) here is OKCoin's API web site. How can I get information from here is OKCoin's API web site. python gets = requests.get("...
1
vote
3answers
4k views

How to get the historical data from bitfinex.com with out a limit?

I am drawing a chart using the data pulled from bitfinex.com via a simple API query. As the result, i will need to render a chart which is going to show the historical data of BTCUSD for the past two ...
1
vote
0answers
17 views

Inconsistent Volume Data from Gdax API

I've queried Gdax API in the past and it seems that the API is currently returning a completely different data set for 'Volume'. For example, when I queried the API for historical BTC prices around 1 ...

1 2
3
4 5
13