Trait aleo_wasm::Credits

source ·
pub trait Credits {
    // Required method
    fn microcredits(&self) -> Result<u64, String>;

    // Provided method
    fn credits(&self) -> Result<f64, String> { ... }
}
Expand description

A trait providing convenient methods for accessing the amount of Aleo present in a record

Required Methods§

source

fn microcredits(&self) -> Result<u64, String>

Get the amount of microcredits in the record if the record possesses Aleo credits

Provided Methods§

source

fn credits(&self) -> Result<f64, String>

Get the amount of credits in the record if the record possesses Aleo credits

Implementations on Foreign Types§

source§

impl Credits for Record<Testnet3, Plaintext<Testnet3>>

Implementors§