resolveSignature

Resolves a signature by converting a hexadecimal string into a function or event signature.

Example

import { resolveSignature } from "thirdweb/utils";
const res = await resolveSignature("0x1f931c1c");
console.log(res);
function resolveSignature(
hexSig: string,
): Promise<{
event: EventString | null;
function: FunctionString | null;
}>;

Parameters

The hexadecimal signature to resolve.

Type

let hexSig: string;

Returns

let returnType: Promise<{
event: EventString | null;
function: FunctionString | null;
}>;

A promise that resolves to an object containing the function and event signatures.