Interface IAccountsCommitRevealManualRequest

Argument interface for the Wallet.accountsCommitRevealManual method.

Atomic commit reveal operation using given payment outputs.

The startDestination stands for the commit transaction and the endDestination for the reveal transaction.

The scriptSig will be used to spend the UTXO of the first transaction and must therefore match the startDestination output P2SH.

Set revealFeeSompi or reflect the reveal fee transaction on endDestination output amount.

The default revealFeeSompi is 100_000 sompi.

interface IAccountsCommitRevealManualRequest {
    accountId: string;
    endDestination: IPaymentOutput;
    feeRate?: number;
    payload?: string | Uint8Array;
    paymentSecret?: string;
    revealFeeSompi: bigint;
    scriptSig: string | Uint8Array;
    startDestination: IPaymentOutput;
    walletSecret: string;
}

Properties

accountId: string
endDestination: IPaymentOutput
feeRate?: number
payload?: string | Uint8Array
paymentSecret?: string
revealFeeSompi: bigint
scriptSig: string | Uint8Array
startDestination: IPaymentOutput
walletSecret: string

Generated using TypeDoc