This repo is a quick example for indexing Spaces on Bitcoin using spaced
and bitcoind
.
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');
npm run start