Skip to content

supportsExecutionMode

Checks if the contract supports the ERC-7821 execution mode.

Usage

example.ts
import { client } from './config'
 
const supported = await client.supportsExecutionMode({ 
  address: '0xcb98643b8786950F0461f3B0edf99D88F274574D',
})

Returns

boolean

If the contract supports the ERC-7821 execution mode.

Parameters

address

  • Type: Address

The address of the contract to check.

opData

  • Type: Hex

Additional data to pass to execution.