Prerequisites and Integration Guide

Prerequisites

To successfully integrate and use the OnionEasy Ecosystem Wallet, ensure you have the following:

  1. Thirdweb Account Sign up here to begin your journey with OnionEasy.

  2. API Key Go to your Thirdweb Settings and generate an API key. This will provide your Client ID for integration.

  3. Ecosystem Partner ID Contact Onion Network to obtain your unique Ecosystem Partner ID for OnionEasy Wallet integration.

Integration Options

OnionEasy Wallet offers two flexible integration methods to suit your application’s needs:

1. Login with OnionEasy Only

For a streamlined and branded sign-in experience, restrict user logins to OnionEasy Wallet.

Steps:

  • Install the Thirdweb SDK.

  • Use Thirdweb’s ConnectButton with the Partner ID provided by Onion Network.

Example Setup:

import { ecosystemWallet } from "thirdweb/wallets";

const restrictedWallet = ecosystemWallet("ecosystem.onion-easy", {

partnerId: "..." // Partner ID provided by Onion Network

});

React SDK Integration: Restrict logins to OnionEasy Wallet by specifying it as the sole login option:

<ConnectButton

client={THIRDWEB_CLIENT} /* Your Thirdweb API Key */

wallets={[restrictedWallet]}

{...props}

/>

2. Adding OnionEasy with Other Login Options

Provide users with flexibility by including OnionEasy Wallet alongside other popular wallets like MetaMask and Thirdweb’s In-App Wallet.

Example Setup for Multi-Wallet Integration:

<ConnectButton

client={THIRDWEB_CLIENT} /* Your Thirdweb API Key */

wallets={[

inAppWallet(),

createWallet("io.metamask"),

createWallet("ecosystem.onion-easy")

]}

{...props}

/>

This configuration allows users to select from OnionEasy Wallet, MetaMask, or Thirdweb’s In-App Wallet, providing a flexible and user-centric login experience.

Build with Thirdweb OnionEasy Wallet harnesses the robust infrastructure of Thirdweb to deliver a seamless, secure, and scalable blockchain experience. Whether you're a developer building next-gen dApps or a user navigating the blockchain ecosystem, OnionEasy provides the tools and features to make blockchain interactions efficient and intuitive.

Last updated