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

Converts the WrappedBox into a DataInput

Converts the WrappedBox into an UnsignedInput

Returns the Box ID of the wrapped ErgoBox as a base16 String

Returns the amount of nanoErgs held in the wrapped ErgoBox as u64

Returns the registers of the wrapped ErgoBox as an ordered Vector of Constants. First element is R4, second element is R5, etc.

Returns the Tokens inside of the wrapped ErgoBox

Returns the creation height of the wrapped ErgoBox

Implementors