📖
Wiki
  • RAILGUN 101
    • Overview
    • Getting Started
    • RAILGUN Privacy System
      • Zero-Knowledge Cryptography
      • Trusted Setup Ceremony
      • Community Broadcasters
      • Privacy Overview
    • Wallets and Keys
    • Shielding Tokens
    • Using Shielded Tokens
      • Gasless Interactions
    • Unshielding Tokens
    • Integrating RAILGUN
      • RAILGUN SDKs
      • Adapt Modules
      • Example - DEX Swaps
    • RAILGUN Deductions
    • Helpful Links
  • User Compliance Tools
    • Private Proofs of Innocence
    • RAILGUN Assurance Suite
    • Koinly Tax Exports
  • RAIL Token & Governance
    • RAIL Token Overview
    • RAIL Active Governor Rewards
    • RAIL Tokenomics
    • How to Stake RAIL
    • Decentralized Governance
Powered by GitBook
On this page

Was this helpful?

  1. RAILGUN 101
  2. Integrating RAILGUN

RAILGUN SDKs

The RAILGUN SDKs are written in TypeScript and come in 2 forms depending on the needs of any integrating dApps:

  • RAILGUN Cookbook - Easily integrate RAILGUN into any existing dApp to enable private features such as private lending, private trading, private minting, etc.

  • ​Wallet SDK – Toolkit to integrate RAILGUN as an incognitio mode for wallets.

RAILGUN Cookbook is suitable for most dApp developers integrating RAILGUN. It enables users to call your public smart contract from a private 0zk address. Calls can also be linked together in "Recipes" such that users can combine multiple DeFi actions together in a single transaction. For example, a user might be able to go from stablecoins in a 0zk address to providing liquidity in a DEX and depositing that liquidity into a yield optimizer such as Beefy Finance, all in the same Cookbook Recipe.

With Wallet SDK, developers can quickly and simply add RAILGUN privacy to their wallets to perform the following RAILGUN actions:

  • Generate private keys and 0zk addresses

  • Generate deposits into private balances

  • Scan interaction history and sync balances

  • Generate ZK proofs for withdrawals, to send interactions, and to initiate cross-contract calls

The generateDeposit() and transact() functions are contained within the Wallet SDK and are callable by dApps once integrated.

Links:

Developer Guide - https://docs.railgun.org/developer-guide RAILGUN Cookbook GitHub: https://github.com/Railgun-Community/cookbook Wallet SDK GitHub - https://github.com/Railgun-Community/quickstart

PreviousIntegrating RAILGUNNextAdapt Modules

Last updated 11 months ago

Was this helpful?