Skip to main content
Sorokit requires no code generation and no complex configuration. This guide will help you set up the SDK and make your first contract call.

1. Install Dependencies

Sorokit is split into modular packages. You will also need to install the peer dependencies that power our validation and data fetching.

2. Wrap your application

The SorokitProvider is the single entry point. It manages your network settings, handles wallet connections, and injects the DevTools.

3. Read from a contract

Use useContractCall to fetch data. You do not need a connected wallet for this since it uses a network simulation.

4. Submit a transaction

Use useContractSend for state-changing operations. Ensure you connect a wallet using the ConnectWalletButton or the useWallet hook first.