getOffers

getOffers returns the available offers against the NFT.

Sample query

query ($nftTokenId: UUID1!, $orgId: UUID1!, $walletAddress: String) {
  getOffers(orgId: $orgId, nftTokenId: $nftTokenId, walletAddress: $walletAddress) {
    id
    offerExpiryDate
    nftOwnerAddress
    tokenType
    tokenId
    tokenContract
    orderStatus
    buyerTax
    buyerAddress
    fixedPrice
    updatedAt
    createdAt
    price {
      value
      unit
      type
      __typename
    }
    createdBy {
      id
      username
      __typename
    }
    createdByUserOrganization {
      username
      organizationId
      __typename
    }
    __typename
  }
}

Sample variable

{
  "nftTokenId": "397d78aa-8b31-4081-be25-b3e87cb44e27",
  "orgId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
  "walletAddress": "0xa77915a574e1f9b88db152525cebfeaa8c71baa4"
}

Sample response

{
  "data": {
    "getOffers": [
      {
        "id": "0cb8e99a-7714-4790-becb-51983ee62ec4",
        "offerExpiryDate": "2023-03-11T06:45:56Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "REJECTED",
        "buyerTax": 0,
        "buyerAddress": "0x208486bE2747825c05dC6B98529a99ED9252F2E6",
        "fixedPrice": 0.04,
        "updatedAt": "2023-03-13T06:10:28Z",
        "createdAt": "2023-03-09T06:46:06Z",
        "price": [
          {
            "value": 76.3565,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "eb022a57-a937-4212-89ce-364e59c0b140",
          "username": "548d8e7a-f4a0-4a26-a2c8-a619061fdf64",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "siva3",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      },
      {
        "id": "765f078d-0571-4605-ada1-9c34b37d0f7f",
        "offerExpiryDate": "2023-04-06T09:52:08Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "REJECTED",
        "buyerTax": 0,
        "buyerAddress": "0x0bd551A8e6035249c0E92639b51c6E72726b7b59",
        "fixedPrice": 0.04,
        "updatedAt": "2023-03-13T06:10:28Z",
        "createdAt": "2023-03-09T09:52:12Z",
        "price": [
          {
            "value": 76.3565,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "8ccd485a-9533-4fd0-8fb2-44e762c7f437",
          "username": "3e145a7f-1b7a-4be6-9d5a-734d17a10ae7",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "batman",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      },
      {
        "id": "f44586fc-69d5-4a23-8f1e-d1e80b08b543",
        "offerExpiryDate": "2023-03-31T06:40:03Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "CANCELLED",
        "buyerTax": 0,
        "buyerAddress": "0x0bd551A8e6035249c0E92639b51c6E72726b7b59",
        "fixedPrice": 0.05,
        "updatedAt": "2023-03-09T09:51:59Z",
        "createdAt": "2023-03-09T06:40:05Z",
        "price": [
          {
            "value": 95.4456,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.05,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "8ccd485a-9533-4fd0-8fb2-44e762c7f437",
          "username": "3e145a7f-1b7a-4be6-9d5a-734d17a10ae7",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "batman",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      },
      {
        "id": "c65c3e15-997a-48b0-bb7d-60c8d1bd3df1",
        "offerExpiryDate": "2023-03-18T06:37:57Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "CANCELLED",
        "buyerTax": 0,
        "buyerAddress": "0x0bd551A8e6035249c0E92639b51c6E72726b7b59",
        "fixedPrice": 0.04,
        "updatedAt": "2023-03-09T06:40:10Z",
        "createdAt": "2023-03-09T06:37:58Z",
        "price": [
          {
            "value": 76.3565,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "8ccd485a-9533-4fd0-8fb2-44e762c7f437",
          "username": "3e145a7f-1b7a-4be6-9d5a-734d17a10ae7",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "batman",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      },
      {
        "id": "180e0451-fb4e-4236-bbf4-eaee7d762ce6",
        "offerExpiryDate": "2023-03-12T04:50:56Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "REJECTED",
        "buyerTax": 0,
        "buyerAddress": "0x0bd551A8e6035249c0E92639b51c6E72726b7b59",
        "fixedPrice": 0.04,
        "updatedAt": "2023-03-09T06:40:10Z",
        "createdAt": "2023-03-09T04:50:58Z",
        "price": [
          {
            "value": 76.3565,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "8ccd485a-9533-4fd0-8fb2-44e762c7f437",
          "username": "3e145a7f-1b7a-4be6-9d5a-734d17a10ae7",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "batman",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      },
      {
        "id": "3161bfbc-2177-4628-9afa-71834448e1a9",
        "offerExpiryDate": "2023-03-31T05:43:34Z",
        "nftOwnerAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
        "tokenType": "ERC721",
        "tokenId": "11",
        "tokenContract": "0x33de1261f21334703c8872284d73de26a2ef765f",
        "orderStatus": "CANCELLED",
        "buyerTax": 0,
        "buyerAddress": "0x0bd551A8e6035249c0E92639b51c6E72726b7b59",
        "fixedPrice": 0.04,
        "updatedAt": "2023-03-09T06:40:10Z",
        "createdAt": "2023-03-09T05:43:36Z",
        "price": [
          {
            "value": 76.3565,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "WETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "createdBy": {
          "id": "8ccd485a-9533-4fd0-8fb2-44e762c7f437",
          "username": "3e145a7f-1b7a-4be6-9d5a-734d17a10ae7",
          "__typename": "User"
        },
        "createdByUserOrganization": {
          "username": "batman",
          "organizationId": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
          "__typename": "UserOrganization"
        },
        "__typename": "Order"
      }
    ]
  }
}

Arguments

NameTypeDescriptionRequired
nftTokenIdUUIDThe NFT token id.Yes
orgIdUUIDThe organization id.Yes
walletAddressStringMetamask connected wallet addressNo

Fields

NameTypeDescription
OrderObjectContains the information from order such as fixed price,buyer address , platform fee and etc..

Examples

Load the offers against the NFT.