Skip to content

Smart Wallet: APIs

Overview

There are two main ways to integrate Smart Wallet features into your application.

  1. Directly call Smart Wallet Backend APIs and ZK Prover APIs. These APIs hide the complexities of blockchain and zero-knowledge proof development. In this scenario, the application developers get access to the basic operations that can be performed with a Smart Wallet, like deriving a Cardano address from email, calculating ZK Proof of wallet ownership, initializing Smart Wallet on Cardano, sending funds from Smart Wallet to Cardano address, etc. This option is best suited for developers who want as few client-side dependencies as possible.
  2. Use Smart Wallet API library. The library simplifies the Smart Wallet workflow, providing higher-level API. Developers can access higher-level APIs, like sendTo method, that sends funds from the current user's wallet to another email or Cardano address. This option is best suited for developers who want the fastest integration path possible.

API references

Smart Wallet Backend APIs: wallet-api.zkfold.io/docs

ZK Prover Backend APIs: wallet-prover.zkfold.io/docs

Smart Wallet TypeScript APIs: github.com/zkFold/smart-wallet-api