makeOffer

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

Example

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 });

Parameters

Returns

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