on_chain
8.1.0, released 4 months ago by an unverified publisher
Streamlines multi-chain blockchain operations for Ethereum, Tron, Solana, Cardano, Aptos, and Sui.
What it does
Provides tools for creating transactions, interacting with smart contracts, managing wallets, and signing data across multiple major blockchain ecosystems. It handles era-specific transaction building, serialization, and node communication in Dart.
AI-written summary of version 8.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a cross-chain wallet or interact with multiple blockchains like Ethereum, Solana, and Cardano within a single Dart application.
- You require granular transaction construction, smart contract invocation, and cryptographic signing without running a local node.
Skip it when
- You only need to interact with a single blockchain and can use a smaller, dedicated client library.
- You require complex state management or high-level UI widgets for crypto operations.
Strengths
- Supports multiple major blockchains (Ethereum, Tron, Solana, Cardano, Aptos, Sui) in a unified SDK.
- Comprehensive feature set including HD-Wallets, smart contract interaction, and advanced transaction serialization.
Weaknesses
- Large dependency surface area across diverse blockchain ecosystems.
- Breaking updates across major version bumps require careful code review of transaction models.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add to pubspec.yaml dependencies and import as needed. No native platform permissions or build_runner required.
import 'package:on_chain/on_chain.dart';
void main() {
// HD-Wallet generation and address derivation example
final mnemonic = BIP39.generateMnemonic();
print('Mnemonic: $mnemonic');
}Alternatives
Packages that do the same job and could replace on_chain.
Works with
Packages commonly used together with on_chain: ones it builds on, ones built on it, and its own family.