AvaCloud API
AvaCloud App
Encrypted ERC
Encrypted ERC
  • Welcome
  • 🚀GETTING STARTED
    • What is Encrypted ERC ?
    • Protocol Overview
  • 🏘️ARCHITECTURE
    • Balance & Amount
    • Registration
    • Deposit Operation
    • Mint Operation
    • Transfer Operation
    • Withdrawal Operation
  • ⚙️USAGE
    • SDK Overview
    • useEERC
    • useEncryptedBalance
Powered by GitBook

© 2025 Ava Labs, Inc.

On this page

Was this helpful?

  1. USAGE

SDK Overview

PreviousWithdrawal OperationNextuseEERC

Last updated 6 days ago

Was this helpful?

The eERC SDK enables developers to interact effortlessly with the EncryptedERC (eERC) protocol deployed on the L1. It simplifies various tasks, including the generation of cryptographic proofs, as well as securely encrypting and decrypting balances. The SDK also facilitates the registration of users and manages operations such as minting, burning, and transferring encrypted tokens.

By leveraging two core hooks—useEERC and useEncryptedBalance—developers can initialize the SDK, manage encrypted token balances, and perform essential operations such as minting, burning, transferring, and decrypting balances. These hooks simplify integration with the protocol, ensuring an efficient and secure development experience. The following sections explain the useEERC and useEncryptedBalance hooks in detail, including their parameters and return values.

To install run one of the below commands:

npm install @avalabs/eerc-sdk
# or
pnpm install @avalabs/eerc-sdk
# or
yarn add @avalabs/eerc-sdk

To initialize the eERC SDK, ensure that wagmi is installed and configured correctly in your application. The official documentation is .

Example Implementation

To see the eERC SDK in action, check out our example implementation:

  • - Full source code demonstrating SDK integration

  • - Interactive example showcasing encrypted token operations

This example provides a practical reference for implementing the useEERC and useEncryptedBalance hooks in your own application.

⚙️
Github Repository
Npm Package
here
GitHub Repository
Live Demo