Decode
chaincodec
Universal ABI decoder. 50+ bundled protocol schemas. EVM events + calls, Solana Anchor IDL, Cosmos Protobuf. Parallel batch decode with Rayon.
The universal blockchain data toolkit
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.
▍The problem
Blockchains don't agree on anything. Each architecture speaks its own binary dialect — and until today, you had to learn every one from scratch.
Unified structured events, balances, transactions, and correlations — across every supported architecture.
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
Every crate below is either live on crates.io · npm · PyPI, or clearly flagged as planned. No vapourware.
Decode
Universal ABI decoder. 50+ bundled protocol schemas. EVM events + calls, Solana Anchor IDL, Cosmos Protobuf. Parallel batch decode with Rayon.
Transport
Production RPC middleware for all 7 architectures. Circuit breaker, 4-tier cache, CU-aware rate limiter, MEV protection, 5 failover strategies, dedup, batching.
Index
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
Decode Solidity reverts, panics, custom errors, and Solana program failures from raw bytes. Turns 0x08c379a0… into a human-readable reason.
Correlate
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
Same API surface across Rust, TypeScript, Python, Go, Java, and WASM. Bring your stack — we'll match it.
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"],
);Who builds with ChainFoundry
Your agents need to read the blockchain. ChainFoundry's MCP server gives them decoded, structured data from 500+ networks — self-hosted, no API keys, no vendor lock-in.
See AI agent use caseTrace funds across bridges. Decode transactions across chains. Build audit trails. Open-source cross-chain correlation — without paying $100K/yr for Chainalysis.
See compliance use caseAdd a new chain to your app in hours, not weeks. One import, one API. Wallet, DEX aggregator, portfolio tracker, bridge UI — all work across every architecture.
See developer use caseBetter developer tooling = more developers = more apps = more users. Support ChainFoundry through grants or partnerships and get your chain supported out of the box.
See ecosystem use caseThe numbers — verifiable
Every figure below matches the chainkit monorepo and the live crates.io · npm · PyPI entries.
Coverage — honest 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.
| Architecture | Networks | Encoding | chaincodec | chainrpc | chainindex | chainerrors |
|---|---|---|---|---|---|---|
EVM Ethereum, Polygon, Arbitrum, Base, BSC, zkSync, 200+ ABI / Solidity | Ethereum, Polygon, Arbitrum, Base, BSC, zkSync, 200+ | ABI / Solidity | Shipped | Shipped | Shipped | Shipped |
Solana (SVM) Solana, Eclipse Borsh / Anchor IDL | Solana, Eclipse | Borsh / Anchor IDL | Shipped | Shipped | Shipped | Shipped |
Cosmos Cosmos Hub, Osmosis, dYdX, Sei, 50+ Protobuf / IBC | Cosmos Hub, Osmosis, dYdX, Sei, 50+ | Protobuf / IBC | Shipped | Shipped | Shipped | Planned |
Substrate Polkadot, Kusama, 100+ parachains SCALE codec | Polkadot, Kusama, 100+ parachains | SCALE codec | Planned | Shipped | Shipped | Planned |
Bitcoin Bitcoin, Lightning, Ordinals, BRC-20 Script / UTXO | Bitcoin, Lightning, Ordinals, BRC-20 | Script / UTXO | Planned | Shipped | Shipped | |
Aptos Aptos mainnet Move bytecode | Aptos mainnet | Move bytecode | Planned | Shipped | Shipped | Planned |
Sui Sui mainnet Move (object model) | Sui mainnet | Move (object model) | Planned | Shipped | Shipped | Planned |
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
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.
Get started
Open-source core. EU-built. Production-grade middleware. Add any chain in hours, not weeks.
Developer
Read the docs, install the SDK, decode your first event in 5 minutes.
Read the docsPartner
Ecosystem partnerships, enterprise pilots, and grant collaborations.
Book a 30-min callUpdates
Occasional updates on releases, new chains, and deep-dive blog posts.
Subscribe