Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 999 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 999 Bytes

ordi

ordi is a fast light indexer for building ordinals data source.

Usage

export btc_data_dir=
export ordi_data_dir=

export btc_rpc_host=
export btc_rpc_user=
export btc_rpc_pass=

use ordi::*;

let mut ordi = Ordi::new(Options::default())?;
ordi.when_inscribe(inscribe_callback);
ordi.when_transfer(transfer_callback);
ordi.start()?;
ordi.close();

Example

dump-event: use .env to export environments, check .env.example.

You could download snapshot for utxos at height 767430. Just unzip it into ordi_data_dir as folder output_value, And set environment export index_previous_output_value=false.

ordi_data_dir
|
--output_value

Contributing

If you wish to contribute to ordi, feel free to create a pull request. If you feel unsure about your plans, feel free to create an issue.

Happy Coding!