Bid


const result = await ExpressSDK.erc721.order.bid(
  web3, // Web3 instance configured with metamask provider
  chainId, // Network id of blockchain
  saleId, // Sale Id of NFT
  buyerAddress, // Address of bidder/buyer
  bidPrice // Bid Price placed on item
);

An event is emitted in this function call:

BidOrderReturn: It can be retrieved from the returned transaction receipt.

const bidOrderReturn = result.events.BidOrderReturn.returnValues.bid;

bidOrderReturn variable is an object with following key-value pairs:

{
  buyerAddress: "0x3A0b38AAC59429e628f3064bb0332061d0602883"; //Address of the buyer
  price: "60000"; // Buyer's bid on the item
  saleId: "97"; // Sale Id of the item
  sellerAddress: "0xe18B1dFb94BB3CEC3B47663F997D824D9cD0f4D2"; // Address of seller
  withdrawn: false; // Current status of the bid
}