Skip to main content

@morph-l2/sdkDocs


@morph-l2/sdk / toTransactionHash

Function: toTransactionHash()

toTransactionHash(transaction): string

Pulls a transaction hash out of a TransactionLike object.

Parameters

transaction: TransactionLike

TransactionLike to convert into a transaction hash.

Returns

string

Transaction hash corresponding to the TransactionLike input.

Source

src/utils/coercion.ts:62