Class TransactionComputer
Constructors
Methods
applyGuardian
- applyGuardian(transaction: ITransaction, guardian: string): void
Returns void
applyOptionsForHashSigning
- applyOptionsForHashSigning(transaction: ITransaction): void
Returns void
computeBytesForSigning
- computeBytesForSigning(transaction: ITransaction): Uint8Array<ArrayBufferLike>
Returns Uint8Array<ArrayBufferLike>
computeBytesForVerifying
- computeBytesForVerifying(transaction: ITransaction): Uint8Array<ArrayBufferLike>
Returns Uint8Array<ArrayBufferLike>
computeHashForSigning
- computeHashForSigning(transaction: ITransaction): Uint8Array<ArrayBufferLike>
Returns Uint8Array<ArrayBufferLike>
computeTransactionFee
- computeTransactionFee(
transaction: {
data: Uint8Array<ArrayBufferLike>;
gasLimit: bigint;
gasPrice: bigint;
},
networkConfig: INetworkConfig,
): bigint Parameters
- transaction: { data: Uint8Array<ArrayBufferLike>; gasLimit: bigint; gasPrice: bigint }
- networkConfig: INetworkConfig
Returns bigint
computeTransactionHash
- computeTransactionHash(transaction: ITransaction): Uint8Array<ArrayBufferLike>
Returns Uint8Array<ArrayBufferLike>
hasOptionsSetForGuardedTransaction
- hasOptionsSetForGuardedTransaction(transaction: ITransaction): boolean
Returns boolean
hasOptionsSetForHashSigning
- hasOptionsSetForHashSigning(transaction: ITransaction): boolean
Returns boolean
An utilitary class meant to work together with the Transaction class.