Interface IWrapTransaction

This interface represents a wrap transaction. IWrapTransaction

interface IWrapTransaction {
    burnedBitcoin: BigNumberish;
    calldata: string | Buffer;
    contractAddress: string;
    contractSecret: string | Buffer;
    depositAddress: string;
    depositAmount: string | bigint;
    events: ContractEvents;
    from: string;
    gasUsed: string | bigint;
    hash: string;
    id: string;
    index: number;
    inputs: ITransactionInput[] | TransactionInput[];
    interactionPubKey: string | Buffer;
    minimumSignatures: number;
    OPNetType: InteractionType;
    outputs: ITransactionOutput[] | TransactionOutput[];
    penalized: boolean;
    pubKeys: string[];
    receipt?: string | Buffer;
    receiptProofs?: string[];
    revert?: string | Buffer;
    senderPubKeyHash: string | Buffer;
    vault: string;
    wasCompressed: boolean;
    wrappingFees: string | bigint;
}

Hierarchy (view full)

Implemented by

Properties

burnedBitcoin: BigNumberish

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

calldata: string | Buffer

The calldata of the transaction.

contractAddress: string

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

contractSecret: string | Buffer

The contract secret.

depositAddress: string

The address where the deposit was made.

depositAmount: string | bigint

The final amount that was deposited.

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.

minimumSignatures: number

The minimum amount of signatures required for the vault.

OPNetType: InteractionType

The type of the transaction.

The outputs of the transaction.

penalized: boolean

Was the wrapping transaction penalized due to invalid calldata?

pubKeys: string[]

The vault trusted public keys used for the wrap.

receipt?: string | Buffer

The receipt of the transaction.

receiptProofs?: string[]

The receipt proofs of the transaction.

revert?: string | Buffer

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

senderPubKeyHash: string | Buffer

The sender's public key hash.

vault: string

The vault used to store the Bitcoin.

wasCompressed: boolean

Was the binary data compressed?

wrappingFees: string | bigint

The fees that were paid for wrapping.