Devolopers - SDKs APIs & Contracts
Build on Methexis with contracts, a lightweight SDK, and optional indexer APIs for convenience. On‑chain state is canonical; off‑chain services (IPFS/Arweave + indexers) make it fast to integrate.
TL;DR — 5‑minute Quickstart (testnet)
# 1) Install SDKs (JS or Python)
npm i @methexis/sdk # JS/TS
# or
pip install methexis-sdk # Python
# 2) Configure RPC + signer (env)
export ETH_RPC=https://rpc.testnet.example.org
export WALLET=0xYOUR_ADDR
# 3) Register a dataset (hash + manifest URI)
mhx data register \
--content-hash 0xA3F5...7C1E \
--meta-uri ipfs://bafy.../manifest.yaml \
--bond 80Environments
Env
Chain
RPC
Contracts
Packages
Core Contracts & ABIs (overview)
JavaScript / TypeScript (Ethers v6) examples
1) Setup
2) Register a dataset
3) Watch validation status → drive UX
4) Listen to training lifecycle
5) Propose a governance change
Python (web3.py) examples
Indexer API (optional convenience)
Data flow helpers
Hashing (sha256) & IPFS upload (JS)
Event‑driven architecture (recommended)
Contract interaction patterns
Versioning & Compatibility
Security & Keys
Testing & Local Dev
Error Model (SDK)
Frequently Used Recipes
Support & Links
Last updated

