Labyrinth
WhitepaperResearchGet Private Access
  • 🔭Labyrinth Overview
    • Introduction
    • Why Labyrinth?
    • Who can use Labyrinth?
    • Reward and Fee in Labyrinth
    • Compliance
  • ⭐Use Labyrinth web App
    • How to use the Labyrinth app?
  • 📦Labyrinth SDK
    • ❓What is Labyrinth SDK?
    • ⚒️Quickstart
      • Setup Environment
      • Initialization
      • Private Transactions
      • Balance And Transaction History
      • Protocol Integration
    • 1️⃣Getting Started
    • 🔐Shielded Account
    • 📈Transaction
    • ▶️Initializing SDK
    • 💰Balances And History
    • 📤Sending Transaction
    • 🔌Integrating with DeFi Protocols
    • Labyrinth fee structure
  • Compliance Solution
    • Overview of Compliance
    • How Compliance Works
  • 💻CLI
    • ▶️Running SeDe CLI
  • Technical Implementation
    • Cryptographic Primitives
    • Shielded Account
    • Shielded Address
    • Account Abstraction
    • 🔵Core Architecture
      • 💵Note
      • 🌲Merkle Tree
      • 🔀JoinSplits
      • 🛡️Shielded Transaction
    • 🔄Protocol Interoperability
  • Resource and support
    • Roadmap
    • FAQs
    • Whitepaper
    • Selective De-Anonymization Compliance Paper
  • Contact and socials
    • Labyrinth Website
    • Twitter
    • Discord
    • Contact Us
Powered by GitBook
On this page
  • Asset Balances
  • Transaction History
  1. Labyrinth SDK
  2. Quickstart

Balance And Transaction History

Asset Balances

You can also use the SDK instance (zkfi), to query asset balances of the shielded account you initialized the SDK with:

const balances: Record<number, bigint> = zkfi.getBalances();

// Output:
// {
//   65537: 2000000000000000000n,
//   65538: 32000000000000000000n,
//        .
//        .
//        .
// }

The returned output is a mapping from the asset id to the balance value.

Transaction History

SDK instance can also be utilized to query transaction history list with:

const fromBlock = 10820000;
const toBlock = 10720000;

const history = zkfi.getTransactionHistory(fromBlock, toBlock);
PreviousPrivate TransactionsNextProtocol Integration

Last updated 1 year ago

📦
⚒️