Developer resources

Build faster.
Ship with confidence.

The Eraivo SDK gives you a single typed interface to every chain the platform supports. Write your integration once and extend it to new chains without changing application logic.

Quick start

From zero to first intent in under ten minutes.

01

Install the SDK

Add @eraivo/sdk to your project with npm, yarn, or pnpm. The SDK ships with full TypeScript types and has no peer dependencies beyond viem for EVM chains.

02

Configure the client

Initialise the Eraivo client with your API key and target chain. The client automatically selects the correct adapter based on the chain identifier you provide.

03

Submit an intent

Call client.submit() with an intent payload describing the desired outcome. The SDK validates the payload locally before dispatching it to the relayer network.

04

Observe settlement

Subscribe to the intent stream via client.watch() or poll client.status() to track execution progress and retrieve the settlement proof once finality is reached.

SDK surface

Every method you need, nothing you do not.

client.submit(intent)

Submit an intent to the relayer network. Returns a promise resolving to an intent ID.

client.status(id)

Poll the current status of a submitted intent — pending, executing, settled, or failed.

client.watch(id)

Subscribe to real-time status updates for an intent via a WebSocket stream.

client.simulate(intent)

Dry-run an intent against a forked chain state without committing. Returns gas estimates and revert reasons.

client.getNonce()

Fetch a one-time nonce for SIWE authentication flows.

client.readState(query)

Query on-chain state through the Eraivo indexer. Supports EVM, Solana, and Cosmos read operations.

client.getLogs(filter)

Retrieve indexed event logs matching a filter. Supports block ranges, address filters, and event signatures.

Resources
Documentation

Full reference for every SDK method, REST endpoint, and configuration option.

GitHub

Source code, issue tracker, and contribution guide. MIT licensed.

Discord

Community support, release announcements, and direct access to the engineering team.

Changelog

Version history, breaking changes, and migration guides for every release.

Security policy

Responsible disclosure programme and security architecture overview.

Ready to integrate?