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§

source

fn get_key(&self) -> Clause

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

source

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

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

Implementors§