Trait sapio_contrib::contracts::derivatives::apis::UserApi
source · pub trait UserApi {
// Required methods
fn get_key(&self) -> Clause;
fn receive_payment(&self, amount: Amount) -> Compiled;
}
Expand description
An API for the Counterparty
Required Methods§
sourcefn receive_payment(&self, amount: Amount) -> Compiled
fn receive_payment(&self, amount: Amount) -> Compiled
Get a contract for a receivable amount. Allows Userto direct funds to e.g. cold storage contracts