[][src]Struct komodo_airdrop::Airdrop

pub struct Airdrop { /* fields omitted */ }

Methods

impl Airdrop[src]

pub fn builder<'a>() -> AirdropBuilder<'a>[src]

pub fn signing_string(
    &self,
    redeem_script: Option<String>
) -> Result<String, AirdropError>
[src]

Does a createrawtransaction RPC to the running daemon to create a raw transaction and uses the resulting hex to print the string that is needed for the signrawtransaction komodod RPC

Because of multisig, signing is done manually

pub fn calculate(&mut self) -> Result<(), AirdropError>[src]

Takes the fund_address balance (and interest, if set) and calculates what each address in the snapshot will get, based on their address balance to snapshot total balance ratio

Sets dest_addresses

Auto Trait Implementations

impl RefUnwindSafe for Airdrop

impl Send for Airdrop

impl Sync for Airdrop

impl Unpin for Airdrop

impl UnwindSafe for Airdrop

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err