🚀Quickstart
Plug-and-play.
Decentralized Applications can integrate SumerSDK to start tracking events, errors, and user actions all over in. Sumer prepares the collected data and users can inspect for insights and behavioral patterns.
1. Install the SDK:
The SumerSDK
allows RPC requests observing that may occur within a Decentralized Application while using an Ethereum Provider and interacting with the EVM.
2. Register your DApp:
As described in the Getting set up - Step 2, register your DApp and get a unique key that will be used to identify your DApp and start tracking transactions and go on.
3. Import and initialize Sumer :
4. Use Sumer:
The Sumer SDK currently has full support on Wagmi, Ethers, and Web3-React. Once integrated, all transactions activity will be captured and observed while being available for monitorization in the Sumer App.
Once the SDK is initialized for Ethers and Web3-React integrations, you are set to go!
Using wagmi.sh:
For wagmi.sh implementations, use the Sumer.observe()
method over the provider returned by the wagmi.configureChains()
function:
To observe the Smart Contracts
In the case of contracts executions, use the static method Sumer.contract()
from the Sumer Interface
to observe an ethers.js
contract instance:
5. Custom Observers:
The SDK allows the developer to create an extended observer targeting the desired object:
Other Web3 provider libraries:
If you want to use other web3 react hooks libraries, and you may have any trouble implementing it, please contact us to provide support.
Last updated