Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix: update block data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 17, 2023
1 parent 4b8292a commit c0f6f26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/fetchBlockHeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ const fetchBlockHeight = (chain, network) => {
bitcoin: {
mainnet: [
{
baseUrl: `https://api.smartbit.com.au/v1/blockchain/blocks?limit=1`,
path: 'blocks[0].height',
baseUrl: 'https://chain.api.btc.com/v3/block/latest',
path: 'data.height',
},
{
baseUrl: `https://api.blockcypher.com/v1/btc/main`,
baseUrl: 'https://api.blockcypher.com/v1/btc/main',
path: 'height',
},
],
testnet: [
{
baseUrl: `https://testnet-api.smartbit.com.au/v1/blockchain/blocks?limit=1`,
baseUrl: 'https://testnet-api.smartbit.com.au/v1/blockchain/blocks?limit=1',
path: 'blocks[0].height',
},
{
baseUrl: `https://api.blockcypher.com/v1/btc/test3`,
baseUrl: 'https://api.blockcypher.com/v1/btc/test3',
path: 'height',
},
],
Expand Down

0 comments on commit c0f6f26

Please sign in to comment.