Home

v2.1.4EIP-1193

XO Connect

EIP-1193 compatible provider to connect web applications with XO wallets.

ethers.js Compatible
Easily integrate with ethers.js v5.7.2+ as Web3Provider
Multi-Chain
Support for Ethereum, Polygon, Arbitrum, Optimism, BSC and more
Message Signing
Full support for EIP-191 (personal_sign) and EIP-712 (typed data)
Debug Panel
Built-in debug panel to facilitate development

Quick Installation

npm install xo-connect

Basic Usage

import { XOConnectProvider } from 'xo-connect';

// Simple setup - no configuration required!
const provider = new XOConnectProvider();

// Connect wallet
const accounts = await provider.request({
  method: 'eth_requestAccounts'
});

// Sign a message
const signature = await provider.request({
  method: 'personal_sign',
  params: ['Hello XO!', accounts[0]]
});

Supported Methods

eth_requestAccounts
eth_accounts
personal_sign
eth_sendTransaction
eth_signTypedData_v4
wallet_switchEthereumChain
eth_chainId
eth_getBalance