transferFor

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

Example

import { transferFor } from "thirdweb/extensions/farcaster";
const transaction = transferFor({
contract,
from: ...,
to: ...,
fromDeadline: ...,
fromSig: ...,
toDeadline: ...,
toSig: ...,
overrides: {
...
}
});
// Send the transaction
...
function transferFor(
| { asyncParams: () => Promise<TransferForParams> }
>,

Parameters

The options for the "transferFor" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.