[][src]Trait ergo_headless_dapp_framework::box_traits::SpecifiedBox

pub trait SpecifiedBox: WrappedBox {
    pub fn box_spec() -> BoxSpec;

    pub fn get_utxo_scan_json_string() -> String { ... }
pub fn verify_box(ergo_box: &ErgoBox) -> Result<()> { ... }
pub fn explorer_endpoint(explorer_api_url: &str) -> Result<String> { ... } }

Required methods

Loading content...

Provided methods

pub fn get_utxo_scan_json_string() -> String[src]

pub fn verify_box(ergo_box: &ErgoBox) -> Result<()>[src]

Verify that a provided ErgoBox matches the BoxSpec tied to your SpecifiedBox

pub fn explorer_endpoint(explorer_api_url: &str) -> Result<String>[src]

Generates a URL for the Ergo Explorer Backend API to find boxes which may match your BoxSpec. This method uses the explorer_api_url you provide as input which must be formatted as such: https://api.ergoplatform.com/api This method is intended to be used in tandem with process_explorer_response()

Loading content...

Implementors

impl SpecifiedBox for AdaUsdOraclePoolBox[src]

SpecifiedBox impl

pub fn box_spec() -> BoxSpec[src]

A box spec for an Oracle Pool Box with the correct NFT + a Long value in R4

impl SpecifiedBox for ErgUsdOraclePoolBox[src]

SpecifiedBox impl

pub fn box_spec() -> BoxSpec[src]

A box spec for an Oracle Pool Box with the correct NFT + a Long value in R4

impl SpecifiedBox for ErgsBox[src]

SpecifiedBox impl

pub fn box_spec() -> BoxSpec[src]

A simple BoxSpec that just checks the value of nanoErgs is above 1000000

Loading content...