Auction


const result = await ExpressSDK.erc1155.collection.sellNFTByBid(
  web3, // Web3 instance configured with metamask provider
  chainId, // Network id of blockchain
  collectionAddress, // Address of the collection
  tokenId, // Token Id of the item
  initialPrice, // Initial Price to be set for an item
  ownerAddress, // Address of the item owner
  tokenAmount //Amount of token
);

It emits the same event emitted by sellNFT function i.e. TokenMetaReturn which can be accessed through

const tokenMetaEvent = result.events.TokenMetaReturn.returnValues.data;

Items on auction sale can be bid by others using saleId which can be retrieved through tokenMetaEvent.