Trait bdk_chain::AnchorFromBlockPosition
source · pub trait AnchorFromBlockPosition: Anchor {
fn from_block_position(
block: &Block,
block_id: BlockId,
tx_pos: usize
) -> Self;
}
Expand description
An Anchor
that can be constructed from a given block, block height and transaction position
within the block.
Required Methods§
sourcefn from_block_position(block: &Block, block_id: BlockId, tx_pos: usize) -> Self
fn from_block_position(block: &Block, block_id: BlockId, tx_pos: usize) -> Self
Construct the anchor from a given block
, block height and tx_pos
within the block.