- Struct
TxProgressErrorLogEvent - Resource
BitcoinBlockStore - Constants
- Function
genesis_init - Function
get_tx - Function
get_block - Function
get_block_height - Function
get_block_by_height - Function
get_latest_block_height
use 0x1::option;
use 0x1::string;
use 0x1::vector;
use 0x2::bcs;
use 0x2::object;
use 0x2::signer;
use 0x2::simple_multimap;
use 0x2::table;
use 0x2::table_vec;
use 0x2::type_info;
use 0x3::bitcoin_address;
use 0x3::timestamp;
use 0x4::data_import_config;
use 0x4::ord;
use 0x4::types;
use 0x4::utxo;
struct TxProgressErrorLogEvent has copy, drop
struct BitcoinBlockStore has key
const ErrorBlockNotFound: u64 = 1;
const ErrorBlockAlreadyProcessed: u64 = 2;
public(friend) fun genesis_init(_genesis_account: &signer)
public fun get_tx(txid: address): option::Option<types::Transaction>
Get block via block_hash
public fun get_block(block_hash: address): option::Option<types::Header>
public fun get_block_height(block_hash: address): option::Option<u64>
Get block via block_height
public fun get_block_by_height(block_height: u64): option::Option<types::Header>
Get latest block height
public fun get_latest_block_height(): option::Option<u64>