Go SDK for building and sending EIP-4337 User Operations with EIP-7702 support via ZeroDev's Kernel accounts.
go get github.com/zerodevapp/go-sdk- Build and send EIP-4337 User Operations
- EIP-7702 authorization signing for EOA delegation
- Support for multiple Kernel versions (0.3.1, 0.3.2, 0.3.3)
- Batch multiple calls in a single User Operation
- Wait for User Operation receipts with automatic polling
- ECDSA signature support
The SDK requires the following environment variables to be set:
-
Copy the
.env.examplefile to.env:cp .env.example .env
-
Edit
.envand add your ZeroDev project id:ZERODEV_PROJECT_ID=your-project-id-here # Obtain the API Key from ZeroDev Dashboard USEROP_BUILDER_API_KEY=your-api-key-here # Or use the team API key USEROP_BUILDER_TEAM_API_KEY=your-team-api-key-here
Get your Project ID from the ZeroDev Dashboard.
First, set up your environment variables:
# Copy the example .env file
cp .env.example .env
# Edit .env and add your ZERODEV_PROJECT_ID and USEROP_BUILDER_API_KEYThen run an example:
# Run the EIP-7702 example
go run ./example -e 7702
# Show available commands
go run ./example help- An active ZeroDev project ID (from ZeroDev Dashboard)
- Configure gas sponsorship policy for the ZeroDev project to allow gasless transactions.
See LICENSE file for details.
For issues and questions:
- GitHub Issues: github.com/zerodevapp/go-sdk/issues
- Documentation: docs.zerodev.app