confirmOnchainBid

This mutation needs to be called once an NFT has been purchased from the blockchain. Based of this mojito creates an purchase history for an user.

Sample Mutation

mutation confirmOnchainBid($input: ConfirmOnChainBidInput!){
  confirmOnchainBid( input: $input){
    id
    currentBid
    maximumBid
    userId
    txHash
    isCurrent
    marketplaceAuctionLotId
    commissionFee
    platformFee
  }
}

Sample Variable

{
  "input": {
    "orgID":"f2f5c627-5421-4c40-9913-edfd09dd98b3",
    "walletAddress": "0x454d25d3f512ADe0f1C488ADaEcCC334759D211E",
    "lotID": "aaa58ca1-fedb-44e3-9ff9-cdd016c151cb",
    "amount": 0.08,
    "tax": 0,
    "txhash": "0xd041ec8e40646a07e93cb31d7775cbbc681e80c83f2d9db2e74d9799edb8bd1d",
    "commissionFee":0.001,
    "platformFee":0.002
  }
}

Sample Response

{
"data": {
"confirmonchainBid": {
"id": "07dac910-fd6f-40a5-9a14-90886bc34d5c",
"currentBid": 0.001,
"maximumBid": 0.001,
"userId": "b3100669-6430-4015-a673-9aa0fe138923",
"txHash":"Oxcb4d093ce8e939865690eb1724241de94996dc796d82ec9ce56ec4a40fc07740",
"isCurrent": true,
"marketplaceAuctionLotId": "95962a28-2194-493e-ba2d-7abc5cea93bf",
"commissionFee": 0.00002,
"platformFee": 0.00002
}

Arguments

NameTypeDescription
ConfirmOnChainBidInputObjectContains all information of input ConfirmOnChainBidInput

Fields

NameTypeDescription
MarketplaceAuctionBidObjectResponse with relevent details of MarketplaceAuctionBid