emier-chain-js
v1.0.1
Published
JavaScript SDK for EMIER Chain - High Performance Blockchain
Maintainers
Readme
EON Chain TypeScript SDK
Official TypeScript/JavaScript SDK for interacting with EON Chain - a high-performance blockchain with 100% fee burning mechanism.
Features
- 🔥 Fee Burning Integration - Built-in support for EON's 100% fee burning
- 📊 Gas Estimation - Smart gas estimation with EIP-1559 support
- 🔧 Contract Management - Easy contract deployment and interaction
- 🛡️ Type Safety - Full TypeScript support with comprehensive types
- 📡 Multi-Provider - Support for JSON-RPC, Ethers.js providers
- 🧪 Testing Ready - Comprehensive utilities for testing
Installation
npm install eon-chain-sdk
# or
yarn add eon-chain-sdk
Quick Start
typescript
import { EONClient, ContractFactory } from 'eon-chain-sdk';
// Initialize EON Client
const eonClient = new EONClient({
rpcUrl: 'http://localhost:8545',
chainId: 1777,
chainName: 'EON Testnet',
currencySymbol: 'EON'
});
// Get network info
const blockNumber = await eonClient.getBlockNumber();
console.log(`Current block: ${blockNumber}`);
// Deploy a contract
const factory = new ContractFactory(eonClient);
const deployment = await factory.deploySimpleStorage(signer, 42);
console.log(`Contract deployed at: ${deployment.contractAddress}`);
Examples
Check the examples directory for complete usage examples:
Basic Usage
Contract Deployment
Transaction Monitoring
Fee Calculation
Documentation
API Reference
Network Configuration
Fee Burning Mechanism
License
MIT