Skip to content
ChainFoundry

The universal blockchain data toolkit

Decode once.
Build everywhere.

Four composable crates. One API for 7 architectures and 500+ networks.

chaincodec decodes events. chainrpc handles transport. chainindex stores history. chainerrors translates reverts. Works on Ethereum, Solana, Cosmos, Polkadot, Bitcoin, Aptos, and Sui.

chaincodec· Decodechainrpc· Transportchainindex· Indexchainerrors· Diagnosechaincorrelate· Correlate · v2
cargo add chaincodec chainrpc chainindexnpm i @chainfoundry/chaincodecpip install chaincodec
rust
Decode · Transport · Index · DiagnoseLive on crates.io · npm · PyPI

The problem

7 languages. Zero translators.

Blockchains don't agree on anything. Each architecture speaks its own binary dialect — and until today, you had to learn every one from scratch.

Et
Ethereum
ABI
So
Solana
Borsh
Co
Cosmos
Protobuf
Po
Polkadot
SCALE
Bi
Bitcoin
Script
Ap
Aptos
Move
Su
Sui
Move-obj
One output
ChainFoundry

Unified structured events, balances, transactions, and correlations — across every supported architecture.

decodedtypedcanonical

Ethereum uses ABI encoding. Solana uses Borsh. Cosmos uses Protobuf. Substrate uses SCALE. Bitcoin uses Script. Aptos and Sui use Move — but in incompatible ways. Today, building anything multichain means learning each system from scratch, maintaining separate codebases, and hoping nothing breaks when one chain upgrades.

ChainFoundry fixes this. One toolkit. Every architecture. Every language you already use.

What it does

Four shipped primitives. One on the roadmap.

Every crate below is either live on crates.io · npm · PyPI, or clearly flagged as planned. No vapourware.

Decode

chaincodec

Shippedv0.1.2 · crates.io · npm · PyPI

Universal ABI decoder. 50+ bundled protocol schemas. EVM events + calls, Solana Anchor IDL, Cosmos Protobuf. Parallel batch decode with Rayon.

Transport

chainrpc

Shippedv0.1.1 · crates.io · npm · PyPI

Production RPC middleware for all 7 architectures. Circuit breaker, 4-tier cache, CU-aware rate limiter, MEV protection, 5 failover strategies, dedup, batching.

Index

chainindex

Shippedv0.1.1 · crates.io · npm · PyPI

Reorg-safe blockchain indexer as a library — not a SaaS. Pluggable storage (SQLite, Postgres, RocksDB). Embed it in your own binary. You own the data.

Diagnose

chainerrors

Shippedv0.1.0 · crates.io · npm · PyPI

Decode Solidity reverts, panics, custom errors, and Solana program failures from raw bytes. Turns 0x08c379a0… into a human-readable reason.

Correlate

chaincorrelate

PlannedPlanned — not yet published

Cross-chain event correlation. Trace a bridge deposit on Ethereum to its withdrawal on Solana. Build chain-hop graphs across heterogeneous architectures.

Code in any language

3 lines to decode. Any chain. Any language.

Same API surface across Rust, TypeScript, Python, Go, Java, and WASM. Bring your stack — we'll match it.

rust
use chaincodec_evm::EvmDecoder;

let decoder = EvmDecoder::new();
let event = decoder.decode_event(&log, &schema)?;
println!(
    class="tok-s">"Transfer: {} → {} ({})",
    event.fields[class="tok-s">"from"],
    event.fields[class="tok-s">"to"],
    event.fields[class="tok-s">"value"],
);

The numbers — verifiable

What's actually published.

Every figure below matches the chainkit monorepo and the live crates.io · npm · PyPI entries.

4
shipped crates
codec · rpc · index · errors
7
architectures
in chainrpc + chainindex
500+
networks
EVM alone covers 200+
50+
protocol schemas
Uniswap · Aave · Lido · …
5
language bindings
Rust core + TS · Py · Go · Java · WASM
MIT
license
open-source core

Published on crates.io · npm · PyPI · MIT Licensed

Coverage — honest status

7 architectures, per-module status.

chainrpc and chainindex already ship on all 7 architectures. Decode support (chaincodec, chainerrors) is live on EVM / Solana / Cosmos and expanding — we only claim what's published to crates.io.

Architecturechaincodecchainrpcchainindexchainerrors
EVM
Ethereum, Polygon, Arbitrum, Base, BSC, zkSync, 200+
ABI / Solidity
Shipped Shipped Shipped Shipped
Solana (SVM)
Solana, Eclipse
Borsh / Anchor IDL
Shipped Shipped Shipped Shipped
Cosmos
Cosmos Hub, Osmosis, dYdX, Sei, 50+
Protobuf / IBC
Shipped Shipped ShippedPlanned
Substrate
Polkadot, Kusama, 100+ parachains
SCALE codec
Planned Shipped ShippedPlanned
Bitcoin
Bitcoin, Lightning, Ordinals, BRC-20
Script / UTXO
Planned Shipped Shipped
Aptos
Aptos mainnet
Move bytecode
Planned Shipped ShippedPlanned
Sui
Sui mainnet
Move (object model)
Planned Shipped ShippedPlanned
Shipped on crates.ioPlanned / roadmapNot applicableSource of truth: github.com/DarshanKumar89/chainkit

A 5th module, chaincorrelate (cross-chain event correlation), is on the v2 roadmap — not yet published. +13 additional chains (Starknet, NEAR, TON, Tron, Cardano…) are planned via the pluggable ChainAdapter trait.

Open source

MIT licensed. Built in the open.

ChainFoundry's core SDK is fully open-source under the MIT license. 197 features are free forever. Enterprise cloud and managed services are coming for teams that need hosted infrastructure.