Author

Topic: best BTC API? (dev) (Read 277 times)

member
Activity: 351
Merit: 37
June 15, 2024, 01:12:01 PM
#20
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below.

- https://github.com/igorbarinov/awesome-bitcoin
disagree. It doesn't support balance on external address which you most probably will need. bcoin library has it

That could be solved by also running self-hosted block explorer or Electrum server. Besides, bcoin development is very slow these days where one of bcoin member state they're yet to support new features[1].

[1] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005

https://www.quicknode.com/chains/btc

still supported. that's where i've used it. i can go without taproot to be fair . support on commercial platform means they do not have any real flaws for now
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 14, 2024, 03:58:58 AM
#19
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below.

- https://github.com/igorbarinov/awesome-bitcoin
disagree. It doesn't support balance on external address which you most probably will need. bcoin library has it

That could be solved by also running self-hosted block explorer or Electrum server. Besides, bcoin development is very slow these days where one of bcoin member state they're yet to support new features[1].

[1] https://github.com/bcoin-org/bcoin/issues/1183#issuecomment-2107543005
member
Activity: 351
Merit: 37
June 13, 2024, 05:41:59 AM
#18
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below.

- https://github.com/igorbarinov/awesome-bitcoin
disagree. It doesn't support balance on external address which you most probably will need. bcoin library has it
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 07, 2024, 03:18:36 AM
#17
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.

Does this getnodes.io work for you? Can you access the site?
I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down.
Anyway, OP does not look exactly what we pointed to.

I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago.

Getnodes.io doesn't have any IP address attached to it. Are you sure that you wen't trying to go to getblock.io or maybe bitnodes.io? Because both of them work on my end.

Thanks for the reminder, i actually trying to say getblock.io. Looks like i forget their actual domain since i never use their service and i primarily remember they offer node API.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
June 06, 2024, 06:19:01 AM
#16
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.

Does this getnodes.io work for you? Can you access the site?
I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down.
Anyway, OP does not look exactly what we pointed to.

I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago.

Getnodes.io doesn't have any IP address attached to it. Are you sure that you wen't trying to go to getblock.io or maybe bitnodes.io? Because both of them work on my end.

The best API for price tracking is already mentioned above Coingecko and another one is Coinmarketcap but if you still looking for another price tracker with API check this one for Bitcoin only.

Personally, the most responsive price API I've seen so far is the Binance API, and you can couple that with any fiat currency exchange rate API in order to get things like BTC-USD price and stuff like that. But it needs an API key for both sites. That's fine though because you can just cache the fiat data and update it every 24 hours or at midnight.
sr. member
Activity: 476
Merit: 299
Learning never stops!
June 05, 2024, 05:31:29 PM
#15
Sniped
~
Was there no dependency installed
Maybe the package.json will just be fine  to install ....
Or he can just make use of it's own ui along with the api because  I think  he only wants to use it in his project, generally it's a cool idea with the css for easy testing  Smiley
He can also use it without  installing react too he just need to declear those state use a required var.. + promise + functions =>(Js)
 

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 05, 2024, 03:36:05 AM
#14
--snip--
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.
Those online providers of RPC APIs have a serious limitation. Because they only allow so many (lat's say X) amount of calls a day, it means you cannot use their APIs for building a transaction database which would otherwise let you work offline, because that requires literally millions of RPC calls which are way above what any provider is willing to allow.

You're right. But when i made that reply, i didn't know what kind of data OP wants or how frequent he need to obtain it.

FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.

Does this getnodes.io work for you? Can you access the site?
I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down.
Anyway, OP does not look exactly what we pointed to.

I also cannot access getnodes.io, although i'm sure i accessed it normally few months ago.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
June 04, 2024, 03:34:55 PM
#13
FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.

Does this getnodes.io work for you? Can you access the site?
I can't seem to access the site and my AV Kaspersky blocking it I also tried accessing it through other devices but it seems it's down.
Anyway, OP does not look exactly what we pointed to.

i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website.

Now, it's clear well, that the links that I provided are for blockchain development so it won't fit if you are building a live Bitcoin price tracker.

The best API for price tracking is already mentioned above Coingecko and another one is Coinmarketcap but if you still looking for another price tracker with API check this one for Bitcoin only.

Code:
https://blockchain.com/api/exchange_rates_api
https://blockchain.com/ticker
https://blockchain.com/tobtc?currency=USD&value=500

http://www.coindesk.com/api/
http://api.coindesk.com/v1/bpi/currentprice.json
http://api.coindesk.com/v1/bpi/currentprice/USD.json
full member
Activity: 147
Merit: 83
aliveNFT.github.io | Track your love.
June 04, 2024, 10:16:23 AM
#12
Agree with @aliveNFT coingecko is probably one of the better ones. And if you are just displaying the BTC price and updating every few minutes you will never run into any API call limitations.
Keep in mind what you are seeing at that point is a general idea of the price averaged across many exchanges. You can also get the price from a single exchange as most of them offer that too.

As of this moment
i.e. Average BTCprice according to coingecko is: $69313 BTC price at Coinbase is: $69378 so you can give interesting comparisons.

-Dave


Yes.. Unfortunately, in order to get the highest quality API for processing a bunch of calls per second and whatever it is in real time, it is necessary to throw out a considerable amount per month.
But I think in the case of the OP, he just needed an api to display the value of BTC. I think that free ones will be enough for him.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
June 04, 2024, 08:39:45 AM
#11
Agree with @aliveNFT coingecko is probably one of the better ones. And if you are just displaying the BTC price and updating every few minutes you will never run into any API call limitations.
Keep in mind what you are seeing at that point is a general idea of the price averaged across many exchanges. You can also get the price from a single exchange as most of them offer that too.

As of this moment
i.e. Average BTCprice according to coingecko is: $69313 BTC price at Coinbase is: $69378 so you can give interesting comparisons.

-Dave
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
June 04, 2024, 03:24:17 AM
#10
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io) which offer Bitcoin Core API.

Those online providers of RPC APIs have a serious limitation. Because they only allow so many (lat's say X) amount of calls a day, it means you cannot use their APIs for building a transaction database which would otherwise let you work offline, because that requires literally millions of RPC calls which are way above what any provider is willing to allow.
full member
Activity: 147
Merit: 83
aliveNFT.github.io | Track your love.
June 04, 2024, 12:22:50 AM
#9
upd
You can also make as chart, this time i used coincap free api.



requires libraries to display that chart also.
full member
Activity: 147
Merit: 83
aliveNFT.github.io | Track your love.
June 03, 2024, 09:40:55 PM
#8
~
i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website.

If you just want free api which allows you display crypto prices, use coingecko's free api (but there are some limitations) you can also pay for better one.




here is code
js
Code:
import React, { useEffect, useState } from 'react';
import './CryptoPriceTracker.css';
import Modal from 'react-modal';

const CryptoPriceTracker = () => {
  const [prices, setPrices] = useState([]);
  const [selectedCoin, setSelectedCoin] = useState(null);
  const [search, setSearch] = useState('');

  useEffect(() => {
    fetch('https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd')
      .then(response => response.json())
      .then(data => setPrices(data))
      .catch(error => console.error('Error fetching prices:', error));
  }, []);

  const handleSelectCoin = (coin) => {
    setSelectedCoin(coin);
  };

  const handleSearchChange = (event) => {
    setSearch(event.target.value);
  };

  const closeModal = () => {
    setSelectedCoin(null);
  };

  const filteredCoins = prices.filter((coin) =>
    coin.name.toLowerCase().includes(search.toLowerCase())
  );

  return (
    

      

Crypto Price Tracker


              type="text"
        className="search-input"
        placeholder="Search for a cryptocurrency"
        value={search}
        onChange={handleSearchChange}
      />
      

            {filteredCoins.map((coin) => (
                          key={coin.id}
                className="coin-item"
                onClick={() => handleSelectCoin(coin)}
              >
                {coin.name}
                {coin.name}
              
            ))}
          

      {selectedCoin && (
                  isOpen={!!selectedCoin}
          onRequestClose={closeModal}
          contentLabel="Crypto Info"
          className="crypto-modal"
          overlayClassName="crypto-modal-overlay"
        >
          
          

{selectedCoin.name}


          

Symbol: {selectedCoin.symbol.toUpperCase()}


          

Current Price: ${selectedCoin.current_price.toFixed(2)}


          

24h Change: {selectedCoin.price_change_percentage_24h.toFixed(2)}%


          

Market Cap: ${selectedCoin.market_cap.toLocaleString()}


        
      )}
    

  );
};

export default CryptoPriceTracker;

css
Code:
.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #39ff14;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #39ff14;
}

.coin-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Add some space between the boxes */
}

.coin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 10px;
  border: 1px solid #39ff14;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px #39ff14;
  cursor: pointer;
  width: 100px;
  height: 130px;
  transition: transform 0.3s;
  text-align: center;
  overflow: hidden;
}

.coin-item span {
  font-size: 0.7rem; /* Increase font size */
  text-align: center;
  margin-top: 5px;
  white-space: nowrap; /* Prevents text from wrapping */
  overflow: hidden; /* Hides overflow text */
  text-overflow: ellipsis; /* Adds ellipsis for overflow text */
  width: 80px; /* Ensures the ellipsis is shown within the box */
}

.coin-item.selected,
.coin-item:hover {
  transform: scale(1.1);
}

.coin-image {
  width: 50px;
  height: 50px;
}

.crypto-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #39ff14;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px #39ff14;
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
  text-align: left;
}

.crypto-modal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #39ff14;
  font-size: 1.5rem;
  cursor: pointer;
}

.crypto-modal h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.crypto-modal p {
  margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coin-item {
    width: 90px;
    height: 120px;
  }

  .coin-item span {
    font-size: 0.65rem;
    width: 70px;
  }

  .coin-image {
    width: 40px;
    height: 40px;
  }
}


This code requires react to install
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
June 03, 2024, 07:35:08 PM
#7
You may want to look at what Bitcoinity.org has to offer https://bitcoinity.org/markets/webmasters
newbie
Activity: 19
Merit: 1
June 03, 2024, 07:09:10 PM
#6
More of a comment to the OP but it also matters what you are doing with it.

You need the best car.....
Are you doing around town deliverers with it?
Are you doing long road trips with it?
Do you just need it to go a few miles to and from work?
Do you need to have your large family in it comfortably?
and so on.

The answer to what car depends on it's use.

There are a bunch of APIs that work well, but there are some better then others for certain tasks.

-Dave
i understand your point, sorry i didn't show my intentions more clear. anyways, i want best BTC API to make live bitcoin price tracker for my website.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
June 03, 2024, 06:09:28 AM
#5
More of a comment to the OP but it also matters what you are doing with it.

You need the best car.....
Are you doing around town deliverers with it?
Are you doing long road trips with it?
Do you just need it to go a few miles to and from work?
Do you need to have your large family in it comfortably?
and so on.

The answer to what car depends on it's use.

There are a bunch of APIs that work well, but there are some better then others for certain tasks.

-Dave
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 03, 2024, 05:58:00 AM
#4
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

FYI, even if OP or someone else doesn't want to run their own full node, they could use service (such as getnodes.io getblock.io) which offer Bitcoin Core API.


At a glance, the list looks decent although it doesn't contain any service which designed to accept Bitcoin payment (such as Coinbace Commerce).
newbie
Activity: 19
Merit: 1
June 02, 2024, 05:29:34 PM
#3
Thanks a lot Cheesy
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
June 02, 2024, 04:16:02 PM
#2
Why did you look for other sources of APIs the Bitcoin core or full node itself has RPC API you don't need to look for other sources unless you don't want to run a full node.

But if you still insist on looking for them I have a list of a good source for Bitcoin development that I think you can use for developing check this link below.

- https://github.com/igorbarinov/awesome-bitcoin
newbie
Activity: 19
Merit: 1
June 02, 2024, 03:47:12 PM
#1
i'll make this clear and short, i wanna know which is most comprehensive API for Bitcoin, made for developing?
Jump to: