[][src]Trait ergo_headless_dapp_framework::box_traits::WrappedBox

pub trait WrappedBox {
    pub fn get_box(&self) -> ErgoBox;

    pub fn as_data_input(&self) -> DataInput { ... }
pub fn as_unsigned_input(&self) -> UnsignedInput { ... }
pub fn box_id(&self) -> String { ... }
pub fn nano_ergs(&self) -> NanoErg { ... }
pub fn p2s_address(&self) -> P2SAddressString { ... }
pub fn registers(&self) -> Vec<Constant> { ... }
pub fn tokens(&self) -> Vec<Token> { ... }
pub fn creation_height(&self) -> u64 { ... } }

A trait which represents an ErgoBox wrapped in an overarching struct.

Required methods

pub fn get_box(&self) -> ErgoBox[src]

Loading content...

Provided methods

pub fn as_data_input(&self) -> DataInput[src]

Converts the WrappedBox into a DataInput

pub fn as_unsigned_input(&self) -> UnsignedInput[src]

Converts the WrappedBox into an UnsignedInput

pub fn box_id(&self) -> String[src]

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

pub fn nano_ergs(&self) -> NanoErg[src]

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

pub fn p2s_address(&self) -> P2SAddressString[src]

pub fn registers(&self) -> Vec<Constant>[src]

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

pub fn tokens(&self) -> Vec<Token>[src]

Returns the Tokens inside of the wrapped ErgoBox

pub fn creation_height(&self) -> u64[src]

Returns the creation height of the wrapped ErgoBox

Loading content...

Implementors

impl WrappedBox for AdaUsdOraclePoolBox[src]

impl WrappedBox for ErgUsdOraclePoolBox[src]

impl WrappedBox for ErgsBox[src]

Loading content...