setTransferableFor

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

Example

import { sendTransaction } from "thirdweb";
import { TransferableERC721 } from "thirdweb/modules";
const transaction = TransferableERC721.setTransferableFor({
contract,
target: ...,
enableTransfer: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setTransferableFor(
| { asyncParams: () => Promise<SetTransferableForParams> }
>,

Parameters

The options for the "setTransferableFor" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.