cancelOffer

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

Example

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