💻
Developer Guide
  • Wallet SDK
    • Wallet Overview
    • Getting Started
      • 1. Start the RAILGUN Privacy Engine
      • 2. Build a persistent store for artifact downloads
      • 3. Load a Groth16 prover for each platform
      • 4. Add networks and RPC providers
      • 5. Set up a debug logger
    • Private Wallets
      • RAILGUN Wallets
      • View-Only Wallets
      • Encryption Keys
    • Private Balances
      • Balance and Sync Callbacks
      • Updating Balances
      • QuickSync
    • Transactions
      • Shielding
        • Shield ERC-20 tokens
        • Shield base token
        • Shield NFTs
      • Private Transfers
        • Private ERC-20 Transfers
        • Private NFT Transfers
      • Cross-Contract Calls
      • Unshielding
        • Unshield ERC-20 tokens
        • Unshield base token
        • Unshield NFTs
      • UX: Private Transactions
    • Broadcasters
  • Cookbook SDK
    • Cookbook Overview
    • Recipe Guide: Write a zkApp
      • "Step" — A smart contract call
      • "Recipe" — Steps in series
      • "Combo Meal" — 2+ Recipes
    • Use your zkApp privately
  • Engine SDK
    • Engine Overview
  • ZK Account Abstraction
    • Account Abstraction Overview
    • Getting started with the contracts
    • Wallets
    • State Structure
    • Example Primitives
Powered by GitBook
On this page
  • Installation
  • Next steps
  1. Wallet SDK

Getting Started

How to set up RAILGUN Wallet SDK for your crypto wallet

PreviousWallet OverviewNext1. Start the RAILGUN Privacy Engine

Last updated 10 months ago

Installation

You may install the Wallet SDK and Shared Models with npm or yarn. We are currently making major improvements to the latest versions of the SDKs. For now, please use the stable versions listed below.

npm install @railgun-community/wallet@10.1.2 @railgun-community/shared-models@7.3.1

-or-

yarn add @railgun-community/wallet@10.1.2 @railgun-community/shared-models@7.3.1

RAILGUN uses a custom Ethers v6 fork which includes some features that make balance scanning and transactions more reliable.

yarn add github:Railgun-Community/ethers.js#v6.7.10

Next steps

In the following steps, we'll cover Wallet SDK initialization:

Start the RAILGUN Privacy Engine
Build a persistent store for artifact downloads
Load the prover for each platform
Add networks and RPC providers
Set up a debug logger