A visualization of Block's Bitcoin treasury holdings.
This project is a Next.js application. Follow the instructions below to run the application locally.
- Node.js (ensure you have version 16 or later)
- npm (comes with Node.js) or yarn (optional package manager)
-
Clone the repository if you haven't already:
git clone <repository-url> cd bitcoin-treasury
-
Install dependencies:
npm install
Or, if you're using Yarn:
yarn install
To start the development server, run:
npm run dev
Or, for Yarn users:
yarn dev
This will start the Next.js development server on the default port (3000). Open your browser and visit:
http://localhost:3000
To build the application for production, run:
npm run build
Or, with Yarn:
yarn build
This will create an optimized production build of the app in the .next
directory. To serve it, use:
npm start
Or:
yarn start
npm run dev
- Starts the development server.npm run build
- Builds the app for production.npm start
- Runs the production server after building.
To stop either the development or production server, press Ctrl+C
in the terminal where the server is running.
Our dashboard fetches BTC/USD price data via Block's public pricing endpoint: https://pricing.bitcoin.block.xyz/current-price
. This price data is refreshed every 60 seconds and is comprised of a volume weighted average of price data from many cryptocurrency exchanges.