isEIP155Enforced

Checks whether EIP-155 is enforced by sending a random transaction of legacy type (pre-EIP-155) and parsing the error message.

Example

import { isEIP155Enforced } from "thirdweb/utils";
const isEIP155 = await isEIP155Enforced({ chain, client });
function isEIP155Enforced(
options: IsEIP155EnforcedOptions,
): Promise<boolean>;

Parameters

The options for checking EIP-155 enforcement.

Type

let options: IsEIP155EnforcedOptions;

Returns

let returnType: Promise<boolean>;

A promise that resolves to a boolean indicating whether EIP-155 is enforced.