This directory contains the Ecosystem SDK and a sample project demonstrating its usage.
ecosystem-sdk/
├── sdk/
└── sdk-sample/
The sdk
directory contains the core Ecosystem SDK. This SDK provides developers with the tools and interfaces necessary to interact with the ecosystem wallet.
Key features:
- Injects EIP-1193 provider to make it compatible with Viem, Ethers, Wagmi and more.
The sdk-sample
directory contains example projects and code snippets that demonstrate how to use the Ecosystem SDK effectively.
Go to index.ts and set the following environment variables:
ecosystemWalletDomain:
ecosystemPublishableKey:
icon:
logo:
name:
reverseDomainNameSystem:
NEXT_PUBLIC_POLICY_ID=
NEXT_PUBLIC_CLIENT_ID=
cd sdk
yarn install
cd sdk-sample
yarn install
If you want to test out your Ecosystem SDK, you can remove the @rapidfire/id from package.json, run the following commands to link the SDK to the SDK Sample:
cd sdk
yarn build
yarn link
cd sdk-sample
yarn link @ecosystem/sdk
yarn dev
The SDK sample includes samples with wagmi
, ethers
, directly with EIP-1193
and rainbowKit
. You can find the code snippets in the app directory.
The RainbowKit sample includes samples with eth_sendTransaction
, personal_signature
and more.