Skip to main content

Overview

Item.isReceive checks whether an ABI item represents a receive function (payable, no data).

Example

import { Abi } from '@tevm/voltaire/Abi';

const item = { type: 'receive', stateMutability: 'payable' } as const;

if (Abi.Item.isReceive(item)) {
  // Handle receive definition
}

See Also