Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 1.67 KB

File metadata and controls

72 lines (58 loc) · 1.67 KB
title Quickstart
description Get started with Fairblock in under 5 minutes
Add encrypted stablecoin transfers to your app using the Stabletrust SDK. Create a confidential application on FairyRing or EVM. Use precompiled contracts and gateway contracts in your smart contracts. Explore FairyRing's architecture, modules, and cryptographic primitives.

Install the SDK

```bash npm npm install @fairblock/stabletrust ```
yarn add @fairblock/stabletrust
pnpm add @fairblock/stabletrust

Send a Confidential Transfer

import { ConfidentialTransferClient } from "@fairblock/stabletrust";

const client = new ConfidentialTransferClient({
  network: "ethereum-sepolia",
  signer: walletSigner,
});

await client.setupAccount();

await client.deposit({
  token: "USDC",
  amount: "1000",
});

await client.transfer({
  to: "0xRecipientAddress",
  amount: "250",
});

const balance = await client.getBalance("USDC");
console.log("Balance:", balance.decrypted);

Supported Networks

Network Status
Ethereum Sepolia Live
Arbitrum Sepolia Live
Base Sepolia Live
Stable Testnet Live
Arc Live
Tempo Live