Back to Wallet Selection
WalletConnect v2

WalletConnect Integration

Connect any mobile wallet via QR code using @walletconnect/ethereum-provider and wrap the provider with Eip1193SignerAdapter.

Step 1

Initialize SDK

SDK initialization is identical for all wallet types. Auto-discovery fetches chain configs from the Blackbox API.

const sdk = await createCiferSdk({
blackboxUrl: 'https://cifer-blackbox.ternoa.dev:3010',
});
Step 2

Connect via WalletConnect

Create an EthereumProvider with your project ID, then wrap it with Eip1193SignerAdapter — the same adapter used for MetaMask.

// 1. Create WalletConnect provider
const provider = await EthereumProvider.init({
projectId: 'YOUR_PROJECT_ID',
chains: [1],
showQrModal: true,
});

// 2. Enable (triggers QR modal)
await provider.enable();

// 3. Wrap with Eip1193SignerAdapter (same as MetaMask!)
const signer = new Eip1193SignerAdapter(provider);

Console Output

Waiting for SDK init...