Struct ckb_sdk::TxHelper [−][src]
pub struct TxHelper { /* fields omitted */ }
Expand description
A transaction helper handle input/output with secp256k1(sighash/multisg) lock
- Sign transaction
- Inspect transaction information
Implementations
pub fn add_input<F: FnMut(OutPoint, bool) -> Result<CellOutput, String>>(
&mut self,
out_point: OutPoint,
since_absolute_epoch_opt: Option<u64>,
get_live_cell: F,
genesis_info: &GenesisInfo,
skip_check: bool
) -> Result<(), String>
pub fn input_group<F: FnMut(OutPoint, bool) -> Result<CellOutput, String>>(
&self,
get_live_cell: F,
skip_check: bool
) -> Result<HashMap<(Byte32, Bytes), Vec<usize>>, String>
pub fn sign_inputs<C>(
&self,
signer: SignerFn,
get_live_cell: C,
skip_check: bool
) -> Result<HashMap<Bytes, Bytes>, String> where
C: FnMut(OutPoint, bool) -> Result<CellOutput, String>,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TxHelper
impl UnwindSafe for TxHelper
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more