txgate-chain
Multi-chain transaction parsing and construction for the TxGate transaction signing service.
Warning
This is an internal crate with an unstable API.
This crate is published to crates.io only as a dependency of the txgate binary. The API may change without notice between versions.
Do not depend on this crate directly. Use the txgate crate instead.
What's Inside
Supported Chains
| Chain | Parser | Features |
|---|---|---|
| Ethereum | EthereumParser |
EIP-1559/2930/Legacy transactions, ERC-20 token detection |
| Bitcoin | BitcoinParser |
P2PKH, P2WPKH (SegWit), P2TR (Taproot), OP_RETURN |
| Solana | SolanaParser |
Native SOL transfers, SPL Token transfers |
Transaction Parsing
- Parse raw transaction bytes into chain-agnostic
ParsedTransaction - Extract recipients, amounts, and token information
- Support for both legacy and modern transaction formats
Chain Registry
- Dynamic chain parser registration
- Extensible architecture for adding new chains
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.