Docs

prepareContractCall

Prepares a contract call by resolving the ABI function, parameters, and encoded data.

Example

Usage with a human-readable method signature:

import { prepareContractCall } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function transfer(address to, uint256 value)",
params: [to, value],
});

Parameters

Returns

A promise that resolves to the prepared transaction.