cancelAuction

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

Example

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

Parameters

The options for the "cancelAuction" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.