MCPcopy Index your code
hub / github.com/0xcregis/anychain

github.com/0xcregis/anychain @0.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.5 ↗ · + Follow
1,343 symbols 2,526 edges 141 files 244 documented · 18%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Anychain

A Rust library for multi-chain cryptowallet, supporting transactions of crypto assets on many different public blockchains including Bitcoin, Ethereum, Tron, Filecoin, etc.

Rust CI

Features

Common Traits when it comes to building transactions for different blockchains, they are

  • PublicKey
  • Address
  • Amount
  • Transaction
  • Network
  • Format

Common crates used in building transactions for different blockchains, they are

  • base58
  • secp256k1
  • hex
  • rand

Functions

  • Build raw unsigned transactions for different blockchains according to parameters taken from the user of this library

  • Build signed transactions for different blockchains by merging the raw transaction and the corresponding signature taken from the user of this library

Build the source

cargo build --release

Crates

Name Description Crates.io Documentation
[anychain-core] Core types and traits. Crates.io Documentation
[anychain-kms] BIP32、BIP39. Crates.io Documentation
[anychain-bitcoin] Bitcoin impl. Crates.io Documentation
[anychain-ethereum] Ethereum impl. Crates.io Documentation
[anychain-filecoin] Filecoin impl. Crates.io Documentation
[anychain-tron] Tron impl. Crates.io Documentation
[anychain-ripple] Ripple impl. Crates.io Documentation
[anychain-polkadot] Polkadot impl. Crates.io Documentation

Supported Chains

  • Bitcoin
  • BitcoinCash
  • Dogecoin
  • Litecoin
  • Ethereum
  • Filecoin
  • Tron
  • Ripple
  • Arbitrum, Optimism, and Avalanche
  • Polkadot
  • Neo

License

This project is licensed under the MIT license.

Contact

Feel free to join anychain sdk Telegram for discussions on code and research.

Extension points exported contracts — how you extend this code

PublicKey (Interface)
Generic public key. [8 implementers]
anychain-core/src/public_key.rs
BitcoinNetwork (Interface)
The interface for a Bitcoin network. [8 implementers]
anychain-bitcoin/src/network/mod.rs
EthereumNetwork (Interface)
The interface for an Ethereum network. [22 implementers]
anychain-ethereum/src/network/mod.rs
PolkadotNetwork (Interface)
(no doc) [4 implementers]
anychain-polkadot/src/network/mod.rs
PublicKey (Interface)
Trait for key types which can be derived using BIP32. [1 implementers]
anychain-kms/src/bip32/public_key.rs
FilecoinAmountConverter (Interface)
(no doc) [1 implementers]
anychain-filecoin/src/amount.rs
ContractPbExt (Interface)
(no doc)
anychain-tron/src/trx.rs
Format (Interface)
The interface for a generic format. [8 implementers]
anychain-core/src/format.rs

Core symbols most depended-on inside this repo

push
called by 972
anychain-kms/src/bip39/util.rs
is_empty
called by 457
anychain-ethereum/src/address.rs
len
called by 134
anychain-kms/src/bip39/util.rs
as_ref
called by 121
anychain-tron/src/address.rs
iter
called by 119
anychain-kms/src/bip32/derivation_path.rs
file_descriptor
called by 91
anychain-tron/src/protocol/Tron.rs
to_string
called by 89
anychain-kms/src/bip32/extended_key/extended_public_key.rs
extend
called by 81
anychain-kms/src/bip32/derivation_path.rs

Shape

Method 699
Function 303
Class 267
Enum 55
Interface 19

Languages

Rust100%

Modules by API surface

anychain-tron/src/protocol/Tron.rs102 symbols
anychain-bitcoin/src/transaction.rs42 symbols
anychain-ethereum/src/amount.rs40 symbols
anychain-filecoin/src/transaction.rs37 symbols
anychain-filecoin/src/address.rs37 symbols
anychain-bitcoin/src/amount.rs37 symbols
anychain-tron/src/protocol/smart_contract.rs33 symbols
anychain-tron/src/protocol/balance_contract.rs33 symbols
anychain-kms/src/bip39/language.rs33 symbols
anychain-ripple/src/transaction.rs32 symbols
anychain-tron/src/protocol/shield_contract.rs26 symbols
anychain-tron/src/transaction.rs23 symbols

For agents

$ claude mcp add anychain \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page