cancelListing

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

Example

import { sendTransaction } from "thirdweb";
import { cancelListing } from "thirdweb/extensions/marketplace";
const transaction = cancelListing({
contract,
listingId: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.