Function cloneTransactionCommon
- cloneTransactionCommon<Transaction>(transaction): {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
} Returns {
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[];
locktime: number;
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[];
version: number;
}
inputs: {
outpointIndex: number;
outpointTransactionHash: Uint8Array;
sequenceNumber: number;
unlockingBytecode: Uint8Array;
}[]
locktime: number
outputs: {
lockingBytecode: Uint8Array;
token?: {
amount: bigint;
category: Uint8Array;
nft?: {
capability: "none" | "mutable" | "minting";
commitment: Uint8Array;
};
};
valueSatoshis: bigint;
}[]
version: number
Deprecated
use
structuredClone
instead