KNN3 Network Docs
KNN3 DOC
KNN3 DOC
  • 🚩KNN3 Network
  • 🔦Products Tour
    • TopScore
    • MashMesh
  • 🛠️K.Transformer
    • 🔑Get Started
    • 💡Real-time Data Service
      • K.GraphX (Legacy)
        • GraphX API Quick Start
        • Categories
          • Possession
          • Bond
          • Attendance
          • Governance
          • Lens
        • K.GraphX Extension: Dynamic Verifiable Credentials
      • KNN3 API
      • KNN3 SDK
      • Arseeding GraphQL
    • ⚙️Lambda-style Workflow
      • A Conversational On-Chain Data Query Constructor
      • KNN3 SQL
      • Customized SDK-JAVA
  • 🏡KNN3 Data Fundamentals
    • KNN3 Data Warehouse
  • 🌏Product Roadmap
  • 👾Learn More
Powered by GitBook
On this page
  • Token
  • NFT
  • ENS
  • Polygon
  1. K.Transformer
  2. Real-time Data Service
  3. K.GraphX (Legacy)
  4. Categories

Possession

PreviousCategoriesNextBond

Last updated 2 years ago

Possession API is used for querying Token ownership and NFT ownership and ENS ownership, Developers can learn the asset information owned by users through the query address.

Token

It supports querying how many and which Tokens an address owns, and on the contrary, can also query an Token that has been held by which addresses.

  • Query the token owned by the address

{
  addrs(where:{address:"0xae89ad222e67205e8d947f131fdc9fa139828745"}){
    address
    holdTokens{
      name
      symbol
    }
  }
}

  • Which addresses are held by the Token

{
  tokens{
    name
    addrsHold{
      address
    }
  }
}

NFT

It supports querying how many and which NFTs an address owns, and on the contrary, can also query an NFT has been held by which addresses.

  • Address held by NFT

{
  addrs{
    address
    holdNfts{
      name
      symbol
    }
  }
}
  • Which addresses are held by NFT

{
  nfts{
    name
    symbol
    addrsHold{
      address
    }
  }
}

ENS

You can query the number and specific information of the ENS owned by an address. On the contrary, you can also query the address where an ENS is held.

  • Address owned by ENS

{
  addrs{
    address
    ens
  }
}
  • Query address according to ENS

{
  ens(where:{ens:"shadow88sky.eth"}){
    address
  }
}

Polygon

Access the information and number of NFT and token held by address

{
  addrs(where:{address:"0x88520C10ad3d35aD2D3220CdE446CcB33f09331B"}){
    holdPolygonNfts{
      name
      symbol
      nftCount
      contract
    }
    holdPolygonTokens{
      name
      symbol
      tokenCount
      contract
    }
  }
}

Access the holder's address according to NFT

{
  polygon_nfts{
    contract
    name
    symbol
    addrsHold{
      address
    }
  }
}

Access the holder's address according to token

{
  polygon_tokens{
    contract
    name
    symbol
    addrsHold{
      address
    }
  }
}

🛠️
💡
Try Yourself
Try Yourself
Try Yourself
Try Yourself
Try Yourself
Try Yourself
Try Yourself
Try Yourself
Try Yourself