pub trait WrappedBox {
fn get_box(&self) -> ErgoBox;
fn as_data_input(&self) -> DataInput { ... }
fn as_unsigned_input(&self) -> UnsignedInput { ... }
fn box_id(&self) -> String { ... }
fn nano_ergs(&self) -> NanoErg { ... }
fn p2s_address(&self) -> P2SAddressString { ... }
fn registers(&self) -> Vec<Constant> { ... }
fn tokens(&self) -> Vec<Token> { ... }
fn creation_height(&self) -> u64 { ... }
}
Expand description
A trait which represents an ErgoBox
wrapped in an overarching struct.
Required methods
Provided methods
fn as_data_input(&self) -> DataInput
fn as_data_input(&self) -> DataInput
Converts the WrappedBox
into a DataInput
fn as_unsigned_input(&self) -> UnsignedInput
fn as_unsigned_input(&self) -> UnsignedInput
Converts the WrappedBox
into an UnsignedInput
Returns the amount of nanoErgs held in the wrapped ErgoBox
as u64
fn p2s_address(&self) -> P2SAddressString
Returns the registers of the wrapped ErgoBox
as an ordered Vector
of Constant
s. First element is R4, second element is R5, etc.
fn creation_height(&self) -> u64
fn creation_height(&self) -> u64
Returns the creation height of the wrapped ErgoBox