LogoLogo
  • Horizon Network
    • What is Horizon Network?
    • API Document
      • Horizon Network API
      • Quick Start
      • API Reference
        • Assets
        • Collections
        • Orders
        • Offers
        • Events
        • Statistics
        • Categories
        • Chains
        • Request an API key
    • SDKs Document
      • SDKs overview
      • NODE SDK
        • Installation
        • Initialization
        • Basic Example
          • Assets Management
          • Marketplace
        • Reference
          • Assets
          • Collections
          • Offers
          • Orders
          • Categories
          • Events
          • Statistics
          • Blockchain and Layer 2
      • JAVASCRIPT SDK
        • Overview
        • Installation
        • Quickstart
        • Reference
    • Launching NFT Collection
      • Launch A Collection
        • Overview
        • Part 1: Register as a user
        • Part 2: Deploy a smart contract
        • Part 3: Set creator earnings
        • Horizon Example Repository
      • Creating Your NFT Smart Contract
        • Overview
        • Getting Started
        • Setting a basic project
        • Minting from your new contract
        • Add your own NFT contract to Horizon Network
    • Horizon Network's Layer 2 Solution
      • Why Horizon Network?
      • Horizon Network's layer 2 Solutions
      • Basic Concepts
  • Horizon Land Metaverse
    • Feature
      • LAND in the metaverse
      • NFT Avatar
      • Horizon Center
      • Game Center
      • Shopping Center
      • Music Center
      • Play to Earn
      • Social Activities
      • Finance Center
      • Marketplace
      • Experience Mode
      • Zon Token
    • Stake Holder
      • Players
      • Creators
      • Land Owners
      • Partners
      • Investors
    • Economy
      • Revenue Stream
  • Technology
    • Blockchain
    • Product
    • System
    • Wallet
    • Security
    • Token
  • Tokenomic
  • Investor & Partner
  • Roadmap
  • Contact
  • Conclusion
  • Recommendation
  • FAQs
    • Policy
    • Terms of Use
Powered by GitBook
On this page
  • Get user balance
  • Get asset owner
  • Get asset metadata URI
  1. Horizon Network
  2. SDKs Document
  3. NODE SDK
  4. Reference

Blockchain and Layer 2

The Horizon Network SDK also provides support for various functions that directly retrieve information from the blockchain, such as getting the user's balance, asset owner, metadata, and more. These functions enable developers to build powerful decentralized applications that interact seamlessly with the blockchain, providing users with access to critical data in real-time.

Get user balance

const userAddress: "0x0dD768A47eA2395bbE5574E3252505fe1202C4A8"

const result = await client.getUserBalance(userAddress);

Get asset owner

const opts = {
  tokenAddress: "0x88Ef499ab1688DE727c21f1b72fAaEe1A3F455AD",
  tokenId: "1",
};

const result = await client.getAssetOwner(opts);

Get asset metadata URI

const opts = {
  tokenAddress: "0x88Ef499ab1688DE727c21f1b72fAaEe1A3F455AD",
  tokenId: "1",
};

const result = await client.getAssetMetadataURI(opts);

PreviousStatisticsNextJAVASCRIPT SDK

Last updated 2 years ago