dart_web3_compat library
Classes
- AbiAddress
- Address type (20 bytes).
- AbiArray
- Array type (fixed or dynamic length).
- AbiBytes
- Dynamic bytes type.
- AbiDecoder
- ABI decoder for Ethereum smart contract return values and events.
- AbiEncoder
- ABI encoder for Ethereum smart contract calls.
- AbiError
- Represents an error in an ABI.
- AbiEvent
- Represents an event in an ABI.
- AbiFixedBytes
- Fixed-size bytes type (bytes1 to bytes32).
- AbiFunction
- Represents a function in an ABI.
- AbiParser
- Parser for ABI JSON definitions.
- AbiString
- String type (UTF-8 encoded per Solidity ABI specification).
- AbiTuple
- Tuple type (struct).
- AbiType
- Base class for all ABI types.
- AbiUint
- Unsigned integer type (uint8 to uint256).
- AccessListEntry
- An entry in an access list.
- AddressUtils
- Address validation and normalization
- AES
- Pure Dart implementation of AES-128 block cipher and CTR mode.
- Authorization
- EIP-7702 authorization for EOA code delegation.
- AuthorizationBatch
- Utility class for creating and managing batch authorizations.
- AuthorizationRevocation
- Utility class for managing EIP-7702 authorization revocations.
- AuthorizationVerifier
- Utility class for verifying EIP-7702 authorizations.
- Base58
- Base58Check encoding used by Bitcoin and other UTXO chains.
- Bech32
- Bech32 encoding (BIP-173) for SegWit addresses.
- Bip39
- Pure Dart implementation of BIP-39 mnemonic phrase generation and validation.
- Block
- Block data.
- BlockNum
- CallRequest
- Call request.
- Chains
- Pre-defined chain configurations.
- ContractAbi
- ContractEvent
- ContractFactory
- Factory for creating and deploying contracts.
- ContractFunction
- CurveFactory
- Factory class for creating curve instances.
- CurveInterface
- Abstract interface for elliptic curve operations.
- DeployedContract
- DeployResult
- Result of a contract deployment.
- Ed25519
- Pure Dart implementation of Ed25519 elliptic curve.
- Ed25519HdWallet
- Pure Dart implementation of SLIP-0010 Ed25519 HD Wallet.
- Ed25519KeyPair
- Ed25519 key pair.
- ERC1155Contract
- ERC-1155 multi-token contract implementation.
- ERC20Contract
- ERC-20 token contract implementation.
- ERC721Contract
- ERC-721 NFT contract implementation.
- EtherAmount
- Compatibility alias for web3dart's EtherAmount
- Ethereum
- Ethereum network configurations.
- EthereumAddress
- Represents an Ethereum address with validation and checksum support.
- EthUnit
- Ethereum unit conversion utilities.
- EventFilter
- Event filter for contract event subscriptions.
- FilterOptions
- HardwareWalletSigner
- Abstract hardware wallet signer interface.
- HDWallet
- Pure Dart implementation of BIP-32/44 Hierarchical Deterministic (HD) wallet.
- HexUtils
- Hex encoding/decoding utilities
- HmacSha256
- HMAC-SHA256 implementation per RFC 2104.
- HmacSha512
- HMAC-SHA512 implementation per RFC 2104.
- HttpTransport
- HTTP transport for JSON-RPC communication.
- Keccak256
- Pure Dart implementation of Keccak-256 hash function.
- KeystoreV3
- Implements the Ethereum Keystore V3 specification.
- Log
- Event log.
- LogFilter
- Log filter.
- MpcSigner
- Abstract MPC signer interface.
- MsgSignature
- Compatibility alias for web3dart's MsgSignature
- Pbkdf2
- PBKDF2 (Password-Based Key Derivation Function 2) per RFC 2898.
- PrivateKeySigner
- Signer implementation using a private key.
- PublicClient
- Public client for read-only blockchain operations.
- PublicClientBase
- Base interface for all blockchain clients.
- Ripemd160
- RIPEMD-160 hash function.
- RLP
- Recursive Length Prefix (RLP) encoding and decoding.
- RpcProvider
- High-level RPC provider with middleware support.
- SchnorrKeyPair
- Represents a Schnorr key pair (BIP-340).
- SchnorrSignature
- Pure Dart implementation of Schnorr signatures (BIP-340).
- Scrypt
- Secp256k1
- Pure Dart implementation of secp256k1 elliptic curve operations.
- Sha256
- SHA-256 hash function (FIPS 180-4).
- Sha512
- SHA-512 hash function (FIPS 180-4).
- Signer
- Abstract signer interface for signing transactions and messages.
- SigningSession
- Represents an MPC signing session.
- SimulateResult
- Result of a contract function simulation.
- Solana
- Solana network configurations.
- Sr25519
- Sr25519 elliptic curve implementation for Polkadot.
- Sr25519KeyPair
- Represents an Sr25519 key pair.
- Transaction
- TransactionReceipt
- Transaction receipt.
- TransactionRequest
- Represents a transaction request.
- TypedContract
- Base class for type-safe contract implementations.
- UnitUtils
- Unit conversion utilities
- Wallet
- WalletClient
- Wallet client for signing and sending transactions.
- WalletClientBase
- Base interface for all wallet clients.
- Web3Client
- Compatibility wrapper for web3dart's Web3Client
- Web3Log
- Web3PrivateKey
- Legacy compatibility wrapper for PrivateKey (EthPrivateKey).
Enums
Extensions
Functions
-
bytesToHex(
List< int> bytes, {bool include0x = false, int? forcePadLength, bool padToEven = false}) → String - Legacy bytesToHex compatibility
-
bytesToUnsignedInt(
Uint8List bytes) → BigInt - Legacy bytesToUnsignedInt compatibility
-
ecRecover(
Uint8List hash, MsgSignature sig) → Uint8List - Legacy ecRecover compatibility
-
hexToBytes(
String hexString) → Uint8List - Legacy hexToBytes compatibility
-
intToBytes(
BigInt number) → Uint8List - Legacy intToBytes compatibility
-
keccak256(
Uint8List input) → Uint8List - Keccak256 hash
-
publicKeyToAddress(
Uint8List publicKey) → Uint8List - Legacy publicKeyToAddress compatibility
Typedefs
- AddressType = AbiAddress
- Credentials = Web3PrivateKey
- EthPrivateKey = Web3PrivateKey
- FilterEvent = Web3Log
- UintType = AbiUint
- Web3ChainConfig = ChainConfig
- Web3Contract = Contract
- Web3TransactionType = TransactionType