Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 613 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 613 Bytes

Spaced indexer example

This repo is a quick example for indexing Spaces on Bitcoin using spaced and bitcoind.

Enable block indexing

Make sure to run spaced with block indexing enabled:

spaced --chain test --block-index --bitcoin-rpc-user test --bitcoin-rpc-password test

Update the rpc configuration in index.js if needed

// Change rpc endpoints based on network
const bitcoinClient = new SimpleRpcClient('http://localhost:18332', 'test', 'test');
const spacedClient = new SimpleRpcClient('http://localhost:22221');

Run the indexer

npm run start