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
Name | Type | Description | Required |
---|---|---|---|
lotID | UUID | Lot Id | Yes |
orgID | UUID | The organization ID. | Yes |
walletAddress | String | Buyer wallet address. | Yes |
amount | Float | Bid Amount | Yes |
Fields
Name | Type | Description |
---|---|---|
OnChainBidResponse | Object | Contains all the information from OnChainBidResponse |