Skip to content

spacesprotocol/spaces-indexer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published