Skip to content

Getting Started

Get up and running in under a minute

Enclave is an embedded, open-source, and non-custodial web3 wallet. It integrates with any library (Wagmi, Web3Modal, Ethers, etc.) and allows users to sign messages, send transactions, and interact with smart contracts. It's free, with no limits or project ID required.

Demo | Wallet

Manual Installation

You can try out Enclave in your dApp in under a minute.

Install

First, we will install @enclave-so/sdk as a dependency in our project.

npm
npm i @enclave-so/sdk

Usage

That’s it! Now you can use Enclave in your dApp. You can choose to use Enclave in two ways, or even combine both methods in your dApp.

Announce Enclave (EIP-6963) (Recommended)

main.ts
import { provider } from '@enclave-so/sdk'
 
provider.announce() // EIP-6963 announce

Directly use Provider (EIP-1193)

Let's use Enclave to get the list of accounts.

main.ts
import { provider } from '@enclave-so/sdk'
 
// EIP-1193 provider
const accounts = await provider.request({ method: 'eth_requestAccounts' })
console.log(accounts)
// ['0x6B944948B5e70e4421034C4C0744A176b0bf9968']

Next Steps