ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / isLegacyTx

Function: isLegacyTx()

isLegacyTx(tx): tx is LegacyTx

Defined in: types.ts:171

Type guard to check if transaction is a Legacy transaction

Parameters

tx

TypedTransaction

The transaction to check

Returns

tx is LegacyTx

true if transaction is Legacy type