prepareMethod

Prepares a method for usage by converting it into a prepared method object.

Example

import { prepareMethod } from "thirdweb/utils";
const method = "function transfer(address to, uint256 value)";
const preparedMethod = prepareMethod(method);
function prepareMethod(method: TMethod): PreparedMethod<TMethod>;

Parameters

The method to prepare.

Type

let method: TMethod;

Returns

let returnType: PreparedMethod<TMethod>;

The prepared method object.