Skip to content

Execute.decodeData

Decodes calls from ERC-7821 execute function data.

Imports

Named
import { Execute } from 'ox/erc7821'

Examples

import { Execute } from 'ox/erc7821'
 
const { calls } = Execute.decodeData('0x...')

Definition

function decodeData(
  data: Hex.Hex,
): decodeData.ReturnType

Source: src/erc7821/Execute.ts

Parameters

data

  • Type: Hex.Hex

The encoded data.

Return Type

The decoded calls and optional opData.

decodeData.ReturnType