prepareTransaction
Prepares a transaction with the given options.
import { prepareTransaction, toWei } from "thirdweb";import { ethereum } from "thirdweb/chains";const transaction = prepareTransaction({ to: "0x1234567890123456789012345678901234567890", chain: ethereum, client: thirdwebClient, value: toWei("1.0"), gasPrice: 30n,});
function prepareTransaction( info?: Additional<abi, abiFn>,
The options for preparing the transaction.
let options: {} & PromisedObject< Omit<StaticPrepareTransactionOptions, "chain" | "client">>;
abi, abiFn,>;
The prepared transaction.