Makes an offer for any asset (ERC721 or ERC1155).
import { makeOffer } from "thirdweb/extensions/marketplace";import { sendTransaction } from "thirdweb"; const offerTx = makeOffer({ contract, assetContractAddress: "0x1234567890123456789012345678901234567890", tokenId: 1n, currencyContractAddress: "0x1234567890123456789012345678901234567890", offerExpiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24), totalOffer: "1.0",}); await sendTransaction({ transaction, account });
function makeOffer(
A transaction object that can be sent to make the offer.