Cancels an auction by providing the necessary options.
import { cancelAuction } from "thirdweb/extensions/marketplace";import { sendTransaction } from "thirdweb"; const transaction = cancelAuction({ contract, auctionId: 0n,}); await sendTransaction({ transaction, account });
function cancelAuction( options: BaseTransactionOptions<CancelAuctionParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for canceling the auction.
let options: BaseTransactionOptions<CancelAuctionParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A transaction that can be sent to cancel the auction.