API Reference onchain v#0.5.4

Copy Markdown View Source

Modules

Shared Ethereum/blockchain library providing read and write capabilities.

ABI encoding/decoding for Ethereum contract calls.

Ethereum address validation, checksumming, and comparison.

Ethereum block fetching and timestamp-based block search.

Generic contract call: ABI encode → eth_call → ABI decode in one function.

Decimal precision helpers for Ethereum token amounts.

ENS (Ethereum Name Service) resolution and namehash computation.

ERC-1155 (Multi Token) read operations.

ERC-20 token operations.

ERC-721 (NFT) read operations.

EIP-1559 fee suggestion math over Cartouche.FeeHistory.t().

Hex encoding/decoding for Ethereum data.

Event log parsing for Ethereum contract events.

Multicall3 batched contract reads.

Ethereum JSON-RPC wrapper using cartouche's RPC client.

EIP-1559 transaction building, signing, encoding, and broadcasting.

Compound-style "deploy-as-call" primitive for arbitrary read-only logic against live chain state.

Real-time Ethereum subscriptions via eth_subscribe over WebSocket.

Transfer event parser for ERC-20, ERC-721, and ERC-1155 token standards.

Thin convenience layer for wallet-level queries.