pub trait BlockchainAPI {
// Required methods
fn get_param(&self, param_id: u32) -> Result<Vec<u8>, HostError>;
fn as_any(&mut self) -> &mut dyn Any;
}
Expand description
the blockchain APIs that should be provided by the host. It can’t be copied or cloned since it doesn’t have Copy and Clone traits.