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 });

Parameters

Returns

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