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
1 vote
2 answers
308 views

REST API to fetch block by height

I am trying to incorporate bitcoin in one of the applications and want to integrate the REST API which exposes all the public information. I tried using https://chain.api.btc.com/v3/block/3 but upon ...
  • 29
3 votes
2 answers
604 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 ...
  • 145
1 vote
2 answers
2k views

Binance API Error Code: "code": -1022, "msg": "Signature for this request is not valid."

I have a problem with the Binance API. I use HTTP request from Integromat, but I always get the following error message: "code": -1022, "msg": "Signature for this request is ...
  • 11
2 votes
1 answer
181 views

How do you determine whether Bitcoin Core is synced fully or not from the RPC API?

I keep getting the wrong numbers returned daily in the beginning of the day because Bitcoin Core has not yet synced the blockchain from the computer being powered off during the night. So I need a way ...
  • 23
4 votes
1 answer
329 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 ...
0 votes
1 answer
103 views

What is the official explorer and value API for Bitcoin?

I am new to cryptocurrency development, and I have noticed that Bitcoin has an official wallet for both Desktop and Mobile (correct me if I am wrong). My question is, does Bitcoin have an official ...
  • 3
0 votes
1 answer
154 views

Quantifying the long term costs associated with self hosting the Bitcoin node?

In this question I discussed the option of self hosting the Bitcoin node vs. using 3rd party services with API access. I quoted a colleague who said that "for every coin we wish to support, we ...
0 votes
1 answer
132 views

API for automatical buying and selling coins in Java [closed]

I need to create a simple bot for buying and selling coins and the programming language needs to be Java due to some technical specifications. These are the functions which I need from that API: buy(...
  • 103
1 vote
0 answers
84 views

Single API to Get Fee Estimates for All Major Cryptocurrencies? [closed]

Many sites provide estimates of miner/gas fees for individual cryptocurrencies. For example, EtherScan provides gas estimates for ETH. BTC Network provides fee estimates for Bitcoin. Both of these ...
  • 409
0 votes
1 answer
55 views

How do internet wallets connected to full blockchain nodes

How do internet wallets such as Coinbase connect to the a blockchain node? Doesn’t the node itself create a default wallet object on startup? How is this replaced by internet wallets which hold ...
  • 1
2 votes
2 answers
1k 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 ...
  • 21
1 vote
1 answer
68 views

How to search (via json API) transactions to my wallet?

I'm new to bitcoin and want to take payments with it on my website. Taking payment isn't a problem but the manually process of verifying payments and matching up with users is. Is there any way to use ...
1 vote
1 answer
524 views

How can I determine the address from a private key?

From the steps in the wiki, take this example private key: 0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D When I import this into Electrum, I find these values: Address: ...
0 votes
1 answer
741 views

How start make a application with php

I'm new with bitcoin, and I would like create a application that have wallets and transactions, but I dont know how start, I was reading the api blockchain.info and is interested use the module that ...
  • 17
0 votes
1 answer
241 views

How to get a balance from the network directly?

I was under the impression that I'd be able to get a balance from the network directly, not only by going through some http interface which wraps the server RPCs. I am curious, is it possible to get a ...
0 votes
1 answer
42 views

Specification of REST .bin format?

I'm currently using the JSON Rest API to get lots of transaction data from bitcoin. Unfortunately thats quite slow. I know there is also a binary format (see Unauthenticated REST Interface), but I ...
  • 103
0 votes
1 answer
111 views

What is the alternative for an exchange which doesnt want to run a node of a coin traded?

It seems to be best practice for an exchange to run a node itself for a coin traded there. But, is there an alternative? A third party service? If yes, which are recommended and why?
  • 1
0 votes
2 answers
84 views

What am I missing about this "guaranteed" money-making scheme that I didn't hear from anyone but just popped up in my head?

Let's suppose that I have already set up an account at Exchange A and Exchange B, loaded each up with a small buffer of BTC (much less than 1 BTC), and am able to make API requests to buy/sell from ...
0 votes
1 answer
55 views

Are there any Bitcoin payment providers with an API’s for allowing unconfirmed transactions? [closed]

I want to design my web app to instantly accept crypto currency like Bitcoin as a payment for a subscription to the app. I will design it to cancel the subscription and ban the user’s account if the ...
1 vote
1 answer
80 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 ...
0 votes
2 answers
243 views

How can I build my own get address transactions API?

I want to build an API to query an arbitrary bitcoin address for received transactions. The address is not necessarily associated with my wallet. Is this possible using the commands in bitcoin-cli? I ...
  • 101
3 votes
2 answers
266 views

In Electrum, how does one watch/poll a wallet for an incoming payments to a certain address via API?

I want to create a simple way to accepting bitcoins on my own, using Electrum. I don't except big volume. I suppose, I'd have at most a handful of incoming payments in the beginning. That is, I ...
3 votes
1 answer
3k views

What is the request limit number in the blockchain.info API? [closed]

I'm planning to use https://www.blockchain.com/api, precisely single block https://www.blockchain.com/api/blockchain_api for testing purposes on my script. I noticed there this line on the the API ...
0 votes
2 answers
197 views

library for validating bitcoin private and public keys

I am building a python script that gets a string and determines if it is a valid bitcoin private key or public key, and if so it returns its type/format (base58, BIP32, HexaDecimal etc.) and its ...
  • 35
0 votes
1 answer
310 views

API for top bitcoin addresses sorted by available balance [closed]

Is there any API from where I can get the list of top bitcoin addresses sorted by available balance? I know there are many websites out there listing Bitcoin rich list but I need an API.
  • 177
-1 votes
3 answers
62 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 ...
3 votes
1 answer
363 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 ...
0 votes
1 answer
335 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
0 answers
37 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 ...
  • 123
2 votes
0 answers
110 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 ...
  • 121
1 vote
0 answers
159 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 ...
  • 131
1 vote
1 answer
2k views

Check wallet address balance programmatically in PHP using Blockchain wallet api

I'm tyring to fetch my wallet balance programmatically using the Blockchain wallet api. Currently I was expecting that a simple api call to https:/blockchain.info/merchant/$my_guid/balance?password=$...
  • 131
1 vote
0 answers
38 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
1 answer
740 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
2 answers
369 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
1 answer
162 views

Does secp256k1 library provide API for generating uncompressed key?

Hi I am right now want to do a make a small tool to generate some test vector for ecdsa. Openssl is quite good, for support secp256k1 bitcoin provides an excellent library. However, it looks what I ...
  • 45
1 vote
0 answers
113 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
1 answer
191 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 ...
  • 101
1 vote
2 answers
473 views

Api to automatically check the status of a BTC transaction

My team is working for a community of members who make donations in BTC to support a cause from time to time. The donations the details are stored in a database and displayed on their personal ...
  • 131
1 vote
1 answer
508 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 ...
  • 113
0 votes
1 answer
51 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 ...
5 votes
1 answer
611 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....
2 votes
1 answer
4k 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 ...
1 vote
0 answers
63 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....
  • 121
0 votes
2 answers
99 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,...
  • 1
2 votes
1 answer
180 views

Estimated Fees in BCOIN

I installed a BCOIN full node and I would like to calculate estimated fees for Bitcoin transactions. This functionality works perfectly in the CLI. For example: bcoin-cli fee 3 Anyway things go ...
1 vote
1 answer
330 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 ...
  • 13
1 vote
1 answer
71 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/...
  • 303
3 votes
1 answer
241 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 ...
  • 31
3 votes
1 answer
684 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 ...

1
2
3 4 5
14