transfer

Prepares a transaction to call the "transfer" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { transfer } from "thirdweb/extensions/farcaster";
const transaction = transfer({
contract,
to: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function transfer(
TransferParams | { asyncParams: () => Promise<TransferParams> }
>,

Parameters

The options for the "transfer" function.

Type

TransferParams | { asyncParams: () => Promise<TransferParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.