verifyOnchainBid

Get next bid Details it will check if the coming bid is greater than the existing placed current bid and greater than starting bid and calculate tax, calculate commission Fee, calculate platform Fee.

Sample mutation

mutation verifyOnchainBid(
  $lotID: UUID1!
  $orgID: UUID1!
  $walletAddress: String!
  $amount: Float!
) {
  verifyOnchainBid(
    lotID: $lotID
    orgID: $orgID
    walletAddress: $walletAddress
    amount: $amount
  ) {
    amount
    tax
    onChainAuctionContractAddress
    commissionFee
    platformFee
  }
}

Sample variable

{
  "lotID": "ba7be6d2-0294-4eca-b124-a9c46dbb11bc",
  "orgID": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
  "walletAddress": "0x823e14E47EaB5118FDd9d55BB4bd55C415255AF7",
  "amount": 0.1
}

Sample response

{

    "verifyOnchainBid": {
			"amount":0.1,
    	"tax":0,
      "onChainAuctionContractAddress":"",
      "commissionFee":0.002,
      "platformFee":0.002
   }
  }

Arguments

NameTypeDescriptionRequired
lotIDUUIDLot IdYes
orgIDUUIDThe organization ID.Yes
walletAddressStringBuyer wallet address.Yes
amountFloatBid AmountYes

Fields

NameTypeDescription
OnChainBidResponseObjectContains all the information from OnChainBidResponse