cancelListing

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

Example

import { cancelListing } from "thirdweb/extensions/marketplace";
const transaction = cancelListing({
contract,
listingId: ...,
overrides: {
...
}
});
// Send the transaction
...
function cancelListing(
| { asyncParams: () => Promise<CancelListingParams> }
>,

Parameters

The options for the "cancelListing" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.