MCPcopy Index your code
hub / github.com/alloy-rs/examples

github.com/alloy-rs/examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
202 symbols 308 edges 119 files 33 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Alloy Examples

These examples demonstrate the main features of alloy and alloy-core as well as how to use them.

Telegram chat

Usage

To run an example, use the command cargo run --example <Example>:

cargo run --example mnemonic_signer

Overview

This repository contains the following examples:

Contributing

Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Alloy project.

Pull requests will not be merged unless CI passes, so please ensure that your contribution follows the linting rules and passes clippy.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

ToEthers (Interface)
Helper trait to convert to alloy types [1 implementers]
helpers/src/alloy.rs
ToAlloy (Interface)
Helper trait to convert to alloy types [1 implementers]
helpers/src/ethers.rs

Core symbols most depended-on inside this repo

call
called by 28
examples/layers/examples/delay_layer.rs
get_uniswappy_fee
called by 11
helpers/src/alloy.rs
get_uniswappy_fee
called by 11
examples/contracts/examples/helpers.rs
get_uniswappy_fee
called by 10
helpers/src/ethers.rs
get_amount_out
called by 10
examples/contracts/examples/helpers.rs
set_hash_storage_slot
called by 10
examples/contracts/examples/helpers.rs
number
called by 9
examples/providers/examples/wrapped_provider.rs
increment
called by 9
examples/providers/examples/wrapped_provider.rs

Shape

Function 157
Method 23
Class 20
Interface 2

Languages

Rust100%

Modules by API surface

helpers/src/ethers.rs14 symbols
helpers/src/alloy.rs12 symbols
examples/contracts/examples/helpers.rs11 symbols
examples/providers/examples/wrapped_provider.rs8 symbols
examples/fillers/examples/urgent_filler.rs8 symbols
examples/layers/examples/delay_layer.rs7 symbols
examples/layers/examples/logging_layer.rs6 symbols
examples/layers/examples/hyper_http_layer.rs6 symbols
benches/benches/json_abi.rs6 symbols
examples/transactions/examples/permit2_signature_transfer.rs3 symbols
examples/comparison/examples/compare_pending_txs.rs3 symbols
examples/comparison/examples/compare_new_heads.rs3 symbols

For agents

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

⬇ download graph artifact