Trait sapio_contrib::contracts::derivatives::apis::UserApi[][src]

pub trait UserApi {
    fn get_key(&self) -> Clause;
fn receive_payment(&self, amount: Amount) -> Compiled; }

An API for the Counterparty

Required methods

fn get_key(&self) -> Clause[src]

Get a fresh key clause for user signing (could be a multisig etc)

fn receive_payment(&self, amount: Amount) -> Compiled[src]

Get a contract for a receivable amount. Allows Userto direct funds to e.g. cold storage contracts

Loading content...

Implementors

Loading content...