unpublishContract

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

Example

import { sendTransaction } from "thirdweb";
import { unpublishContract } from "thirdweb/extensions/thirdweb";
const transaction = unpublishContract({
contract,
publisher: ...,
contractId: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function unpublishContract(
| { asyncParams: () => Promise<UnpublishContractParams> }
>,

Parameters

The options for the "unpublishContract" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.