cancelOffer

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

Example

import { sendTransaction } from "thirdweb";
import { cancelOffer } from "thirdweb/extensions/marketplace";
const transaction = cancelOffer({
contract,
offerId: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function cancelOffer(
| { asyncParams: () => Promise<CancelOfferParams> }
>,

Parameters

The options for the "cancelOffer" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.