transfer

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

Example

import { transfer } from "thirdweb/extensions/farcaster";
const transaction = transfer({
contract,
to: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
...
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.