Docs

makeOffer

Makes an offer for any asset (ERC721 or ERC1155).

Example

import { makeOffer } from "thirdweb/extensions/marketplace";
const offerTx = makeOffer({
contract,
assetContractAddress: "0x1234567890123456789012345678901234567890",
tokenId: 1n,
currencyContractAddress:
"0x1234567890123456789012345678901234567890",
offerExpiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24),
totalOffer: "1.0",
});

Parameters

Returns

A transaction object that can be sent to make the offer.