toEventSelector

Returns the hash (of the function/event signature) for a given event or function definition.

function toEventSelector(
fn: string | AbiEvent | AbiFunction,
): `0x${string}`;

Parameters

Type

let fn: string | AbiEvent | AbiFunction;

Returns

let returnType: `0x${string}`;