unpublishContract

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

Example

import { unpublishContract } from "thirdweb/extensions/thirdweb";
const transaction = unpublishContract({
contract,
publisher: ...,
contractId: ...,
overrides: {
...
}
});
// Send the transaction
...
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.