getDutchAuctionPurchaseInfo

This query verifies whether your wallet address is logged in and returns the required information for purchasing the NFT through Dutch auction.

Sample query

query getDutchAuctionPurchaseInfo(
  $walletAddress: String!
  $quantity: Int!
  $lotID: UUID1!
) {
  getDutchAuctionPurchaseInfo(
    walletAddress: $walletAddress
    quantity: $quantity
    lotID: $lotID
  ) {
    bidAmount
    totalBidAmount
    tax
    availableQuantity
    totalQuantity
    perWalletLimitUsed
    perTransactionLimitUsed
    networkID
    supportedCurrencyID
    dutchAuctionContractAddress
    signatureInfo{
      discountPercentage
      expirationTime
      nonce
      signature
      signer
      buyerAddress
    }
  }
}

Sample variable

{
  "walletAddress": "0xbA76fcAC5D4D926A72E23970935E79718a5D6453",
  "quantity": 1,
  "lotID": "aaa58ca1-fedb-44e3-9ff9-cdd016c151cb"
}

Sample response

{
  "data": {
    "getDutchAuctionPurchaseInfo": {
      "bidAmount": 0.008,
      "totalBidAmount": 0.008,
      "tax": 0,
      "availableQuantity": 2,
      "totalQuantity": 2,
      "perWalletLimitUsed": 0,
      "perTransactionLimitUsed": 1,
      "networkID": "9ca86d5b-60a5-416f-ac37-7b209653dbed",
      "supportedCurrencyID": "5ac4f4c7-d30a-4398-bde1-b88a82cc982e",
      "dutchAuctionContractAddress": "0x30a32FBA51E2edFdF124c4ff9Bc3824384DB8B1f",
      "signatureInfo": {
        "discountPercentage": 0,
        "expirationTime": 1689701531,
        "nonce": "548b1c10-b609-4e3b-bb07-d9fdb9ff9ef8",
        "signature": "0xae92b2094e69c63b0ef0f259d1be3de15eeb1ee983f6dcbe85e7d9e0501187f11702aae8e6d1736bbe6f5984ab261b1b00d30da88b1ea914af3dfdc11ca773841b",
        "signer": "0xe3d32951C8BA72198207c2F36913aFA5ccA39476",
        "buyerAddress": "0x8051fc5A8c511155ef6ef7415b4f9D9c46A50D7E"
      }
    }
  }
}

Arguments

NameTypeDescriptionRequired
walletAddressStringWallet address.Yes
quantityIntegerquantity of token buy.Yes
lotIDUUIDAuction lot id.Yes

Fields

NameTypeDescription
DutchAuctionBidResponseObjectContains the information from DutchAuctionBidResponse such as tax, bid amount and etc.