Skip to content

Latest commit

 

History

History
149 lines (71 loc) · 4.15 KB

File metadata and controls

149 lines (71 loc) · 4.15 KB

Module 0x4::light_client

Struct TxProgressErrorLogEvent

struct TxProgressErrorLogEvent has copy, drop

Resource BitcoinBlockStore

struct BitcoinBlockStore has key

Constants

const ErrorBlockNotFound: u64 = 1;

Function genesis_init

public(friend) fun genesis_init(_genesis_account: &signer)

Function get_tx

public fun get_tx(txid: address): option::Option<types::Transaction>

Function get_block

Get block via block_hash

public fun get_block(block_hash: address): option::Option<types::Header>

Function get_block_height

public fun get_block_height(block_hash: address): option::Option<u64>

Function get_block_by_height

Get block via block_height

public fun get_block_by_height(block_height: u64): option::Option<types::Header>

Function get_latest_block_height

Get latest block height