setTransferableFor

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

Example

import { sendTransaction } from "thirdweb";
import { TransferableERC20 } from "thirdweb/modules";
const transaction = TransferableERC20.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.