EIP-6963 is a standard way to add support for Sophon Account using the main wallet providers in the market. The implementation is very simple, you just need to import the package and it will automatically broadcast the provider to the wallet provider that you are using. Most modern wallet connection libraries, like RainbowKit, wagmi, or Reown Appkit, support EIP-6963.
npm install @sophon-labs/account-eip6963
Then you need to import and initialize the EIP-6963 emitter in your application entry point, the simplest way is:
import "@sophon-labs/account-eip6963/testnet";
If you need dynamic network support, you can use the root package, for example:
import { getDefaultConfig } from "@rainbow-me/rainbowkit";
import { sophonTestnet, sophon } from "wagmi/chains";
import { createSophonEIP6963Emitter } from "@sophon-labs/account-eip6963";

createSophonEIP6963Emitter("testnet");

export const config = getDefaultConfig({
  appName: "Your Application",
  projectId: "YOUR_PROJECT_ID",
  chains: [sophon, sophonTestnet],
  ssr: true,
});
This will automatically:
  • Register the Sophon Account provider
  • Announce it through the EIP-6963 events
  • Make it available to EIP-6963 compatible applications
You can find examples of implementing EIP-6963 with other common libraries: