This project is an indexer for Bitcoin inscriptions, such as Ordinals, Satributes, and Runes. It uses Bitcoin Core's ZMQ notifications to get instant updates on new blocks and provides an API to query spendable UTXOs for a given wallet address.
inscription-indexer/
├── data/
├── src/
│ ├── indexer.js
│ ├── utxoController.js
├── .env
├── Dockerfile
├── docker-compose.yml
├── package.json
├── README.md
-
Clone the repository:
git clone https://github.com/switch-900/inscription-indexer.git cd inscription-indexer
-
Create a
.env
file with your Bitcoin RPC credentials:BITCOIN_RPC_USER=your_rpc_user BITCOIN_RPC_PASSWORD=your_rpc_password
-
Build and start the Docker containers:
docker-compose up -d --build
Endpoint: GET /api/spendable-utxos/:address
Example:
curl http://localhost:3000/api/spendable-utxos/your_wallet_address
This project is licensed under the MIT License.