@agentaos/chains
v0.2.1
Published
Ethereum chain adapter for AgentaOS threshold wallet
Maintainers
Readme
@agentaos/chains
Ethereum chain adapter for AgentaOS.
Implements the IChain interface from @agentaos/core for Ethereum-compatible chains. Handles transaction building, decoding, serialization, and signature assembly using viem.
Install
npm install @agentaos/chainsUsage
import { EthereumChain } from '@agentaos/chains';This package is used internally by @agentaos/server for transaction processing. Most users should use the higher-level Agenta facade from the SDK package instead.
What It Does
- Transaction Building -- construct EIP-1559 transactions with gas estimation
- Transaction Decoding -- decode calldata using known ABI selectors
- Signature Serialization -- assemble
(r, s, v)into RLP-encoded signed transactions - Balance Queries -- fetch ETH balance via RPC
Dependencies
@agentaos/core-- interfaces and typesviem-- Ethereum client library
License
Apache-2.0 -- see LICENSE.
