transferFrom

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

Example

import { sendTransaction } from "thirdweb";
import { transferFrom } from "thirdweb/extensions/erc721";
const transaction = transferFrom({
contract,
from: ...,
to: ...,
tokenId: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function transferFrom(
| { asyncParams: () => Promise<TransferFromParams> }
>,

Parameters

The options for the "transferFrom" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.