setTransferable

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

Example

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

Parameters

The options for the "setTransferable" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.