cancelAuction

Cancels an auction by providing the necessary options.

Example

import { cancelAuction } from "thirdweb/extensions/marketplace";
import { sendTransaction } from "thirdweb";
const transaction = cancelAuction({
contract,
auctionId: 0n,
});
await sendTransaction({ transaction, account });
function cancelAuction(

Parameters

The options for canceling the auction.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A transaction that can be sent to cancel the auction.