[−][src]Trait ergo_headless_dapp_framework::box_traits::WrappedBox
A trait which represents an ErgoBox
wrapped in an overarching struct.
Required methods
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 Constant
s. First element is R4, second element is R5, etc.
pub fn tokens(&self) -> Vec<Token>
[src]
Returns the Token
s inside of the wrapped ErgoBox
pub fn creation_height(&self) -> u64
[src]
Returns the creation height of the wrapped ErgoBox