lightningdevkit
Version:
Lightning Development Kit
54 lines (53 loc) • 1.83 kB
text/typescript
import { ChannelId } from '../structs/ChannelId.mjs';
import { Result_TxRemoveInputDecodeErrorZ } from '../structs/Result_TxRemoveInputDecodeErrorZ.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* A [`tx_remove_input`] message for removing an input during interactive transaction construction.
*
* [`tx_remove_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
*/
export declare class TxRemoveInput extends CommonBase {
/**
* The channel ID
*/
get_channel_id(): ChannelId;
/**
* The channel ID
*/
set_channel_id(val: ChannelId): void;
/**
* The serial ID of the input to be removed
*/
get_serial_id(): bigint;
/**
* The serial ID of the input to be removed
*/
set_serial_id(val: bigint): void;
/**
* Constructs a new TxRemoveInput given each field
*/
static constructor_new(channel_id_arg: ChannelId, serial_id_arg: bigint): TxRemoveInput;
clone_ptr(): bigint;
/**
* Creates a copy of the TxRemoveInput
*/
clone(): TxRemoveInput;
/**
* Generates a non-cryptographic 64-bit hash of the TxRemoveInput.
*/
hash(): bigint;
/**
* Checks if two TxRemoveInputs contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
* Two objects with NULL inner values will be considered "equal" here.
*/
eq(b: TxRemoveInput): boolean;
/**
* Serialize the TxRemoveInput object into a byte array which can be read by TxRemoveInput_read
*/
write(): Uint8Array;
/**
* Read a TxRemoveInput from a byte array, created by TxRemoveInput_write
*/
static constructor_read(ser: Uint8Array): Result_TxRemoveInputDecodeErrorZ;
}