[][src]Struct ckb_capsule::wallet::Wallet

pub struct Wallet { /* fields omitted */ }

Implementations

impl Wallet[src]

pub fn load(uri: String, ckb_cli_bin: String, address: Address) -> Self[src]

pub fn complete_tx_lock_deps(&self, tx: TransactionView) -> TransactionView[src]

pub fn complete_tx_inputs<'a>(
    &self,
    tx: TransactionView,
    original_inputs_capacity: Capacity,
    fee: Capacity
) -> TransactionView
[src]

pub fn read_password(&self) -> Result<Password>[src]

pub fn sign_tx(
    &self,
    tx: TransactionView,
    password: Password
) -> Result<TransactionView>
[src]

pub fn query_transaction(
    &self,
    tx_hash: &H256
) -> Result<Option<TransactionWithStatus>>
[src]

pub fn send_transaction(&mut self, tx: TransactionView) -> Result<H256>[src]

pub fn lock_out_points(&mut self, out_points: impl Iterator<Item = OutPoint>)[src]

pub fn lock_tx_inputs(&mut self, tx: &TransactionView)[src]

pub fn collect_live_cells(&self, capacity: Capacity) -> HashSet<LiveCell>[src]

pub fn get_cell_output(&self, out_point: OutPoint) -> CellOutput[src]

pub fn lock_script(&self) -> Script[src]

pub fn address(&self) -> &Address[src]

pub fn genesis(&self) -> &BlockView[src]

Auto Trait Implementations

impl !RefUnwindSafe for Wallet

impl Send for Wallet

impl Sync for Wallet

impl Unpin for Wallet

impl !UnwindSafe for Wallet

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,