Interface IUnwrapTransaction

This interface represents an unwrap transaction. IUnwrapTransaction

interface IUnwrapTransaction {
    authorizedBy: string[];
    burnedBitcoin: BigNumberish;
    calldata: string | Buffer;
    consolidatedVault: undefined | PartialWBTCUTXODocument | ParsedPartialWBTCUTXODocument;
    contractAddress: string;
    contractSecret: string | Buffer;
    events: ContractEvents;
    from: string;
    gasUsed: string | bigint;
    hash: string;
    id: string;
    index: number;
    inputs: ITransactionInput[] | TransactionInput[];
    interactionPubKey: string | Buffer;
    OPNetType: InteractionType;
    outputs: ITransactionOutput[] | TransactionOutput[];
    receipt?: string | Buffer;
    receiptProofs?: string[];
    requestedAmount: string | bigint;
    revert?: string | Buffer;
    senderPubKeyHash: string | Buffer;
    unwrapAmount: string | bigint;
    usedUTXOs: UsedUTXO[];
    wasCompressed: boolean;
}

Hierarchy (view full)

Implemented by

Properties

authorizedBy: string[]

The trusted indexers that authorized this transaction.

burnedBitcoin: BigNumberish

Returns the amount of satoshi that were burned in the transaction.

calldata: string | Buffer

The calldata of the transaction.

The consolidated vault. If any.

contractAddress: string

This indicates which contract the transaction was sent to. (AKA to)

contractSecret: string | Buffer

The contract secret.

If the interaction returned events, they will be stored here.

from: string

Who sent the transaction. (ALWAYS TAPROOT. This address is generated from the P2TR of the pubkey of the deployer.)

gasUsed: string | bigint

The amount of gas used by the transaction.

hash: string

The transaction "hash".

id: string

The transaction ID (hash).

index: number

The index of the transaction in the block.

The inputs of the transaction.

interactionPubKey: string | Buffer

The interaction public key.

OPNetType: InteractionType

The type of the transaction.

The outputs of the transaction.

receipt?: string | Buffer

The receipt of the transaction.

receiptProofs?: string[]

The receipt proofs of the transaction.

requestedAmount: string | bigint

The requested amount.

revert?: string | Buffer

If the transaction was reverted, this field will contain the revert message.

senderPubKeyHash: string | Buffer

The sender's public key hash.

unwrapAmount: string | bigint

The amount to unwrap.

usedUTXOs: UsedUTXO[]

The UTXOs used in this transaction.

wasCompressed: boolean

Was the binary data compressed?