Docs

prepareContractCall

Prepares a contract call by resolving the ABI function, parameters and encoded data. Optionally specify other properties such as value or gas price.

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.