pub trait SpecifiedBox: WrappedBox {
fn box_spec() -> BoxSpec;
fn get_utxo_scan_json_string() -> String { ... }
fn verify_box(ergo_box: &ErgoBox) -> Result<()> { ... }
fn explorer_endpoint(explorer_api_url: &str) -> Result<String> { ... }
}
Required methods
Provided methods
fn verify_box(ergo_box: &ErgoBox) -> Result<()>
fn verify_box(ergo_box: &ErgoBox) -> Result<()>
Verify that a provided ErgoBox
matches the BoxSpec
tied to your SpecifiedBox
fn explorer_endpoint(explorer_api_url: &str) -> Result<String>
fn explorer_endpoint(explorer_api_url: &str) -> Result<String>
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()
Implementors
SpecifiedBox impl
SpecifiedBox impl
SpecifiedBox impl