Client
The Sunrise client libraries let you query the chain, submit blobs and sign / broadcast transactions from your application without having to run custom protobuf tooling or handβcraft Tendermint JSONβRPC calls.
Available SDKs
JavaScript / TypeScript - Primary SDK available on npm
Rust - gRPC + protobuf type generation with Buf/Prost
Go and Python bindings - Coming soon (contributions welcome)
JavaScript / TypeScript SDK
Installation
Basic Usage
All methods are fully typed when using TypeScript.
Rust SDK
The Rust SDK is currently implemented through protobuf generation. Here's how to set it up:
Project Structure
Configuration Files
buf.yaml
:
buf.gen.yaml
:
Setup and Generation
Example Usage
Additional Resources
Troubleshooting
Problem
Solution
Connection refused
Verify RPC URL and ensure DA node is running
Authentication error
Ensure account has sufficient funds
Rust build failure
Update to Rust 1.74+ and run cargo clean && buf generate
Last updated