Connect wallets

This section outlines the supported wallet providers and the steps required to connect Bitcoin, EVM, and non-EVM wallets to the Lombard SDK.


EVM Provider

The EVM provider must implement the EIP-1193 interface.

import { createConfig, Env } from '@lombard.finance/sdk';

const config = createConfig({
  env: Env.testnet,
  providers: {
    evm: () => window.ethereum,
  },
});

With wagmi

import { createConfig, Env } from '@lombard.finance/sdk';
import { getWalletClient } from '@wagmi/core';

const config = createConfig({
  env: Env.testnet,
  providers: {
    evm: async () => {
      const client = await getWalletClient();
      return client;
    },
  },
});

Bitcoin Provider

Use OKX Wallet for Bitcoin operations.

Bitcoin Provider Interface


Solana Provider

Solana Provider Interface


Sui Provider


Starknet Provider


Async Providers

Providers can return promises for async wallet initialization.


Multiple Providers

Configure all providers your application needs.Configure all required providers for the application.


Last updated