diff --git a/.changeset/lovely-clocks-juggle.md b/.changeset/lovely-clocks-juggle.md new file mode 100644 index 000000000..22a497467 --- /dev/null +++ b/.changeset/lovely-clocks-juggle.md @@ -0,0 +1,5 @@ +--- +'explorer': minor +--- + +Added base explored API for future Siacentral phase out. diff --git a/apps/explorer/config/explored.ts b/apps/explorer/config/explored.ts new file mode 100644 index 000000000..278096c09 --- /dev/null +++ b/apps/explorer/config/explored.ts @@ -0,0 +1,4 @@ +import { Explored } from '@siafoundation/explored-js' +import { exploredApi as api } from '.' + +export const explored = Explored({ api }) diff --git a/apps/explorer/config/index.ts b/apps/explorer/config/index.ts index e5c5e6fd3..87bb4c213 100644 --- a/apps/explorer/config/index.ts +++ b/apps/explorer/config/index.ts @@ -10,3 +10,4 @@ export const isMainnet = true // APIs export const faucetApi = 'https://api.siascan.com/zen/faucet' export const siaCentralApi = 'https://api.siacentral.com/v2' +export const exploredApi = 'https://explored.siascan.sia.dev/api' diff --git a/apps/explorer/config/testnet-zen.ts b/apps/explorer/config/testnet-zen.ts index 0b1acb448..27e2cd99d 100644 --- a/apps/explorer/config/testnet-zen.ts +++ b/apps/explorer/config/testnet-zen.ts @@ -10,3 +10,4 @@ export const isMainnet = false // APIs export const faucetApi = 'https://api.siascan.com/zen/faucet' export const siaCentralApi = 'https://api.siacentral.com/v2/zen' +export const exploredApi = 'https://explored.zen.siascan.sia.dev/api'