Skip to content

nuntax/arb-alloy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arb-alloy

arb-alloy logo

Arbitrum integrations for the Alloy Rust SDK.

⚠️ Warning

This project is under active development and not yet stable. API and feature coverage may change at any time. This project is neither affiliated or endorsed by Alloy or OffchainLabs.

Quick Start

use alloy_provider::{Provider, ProviderBuilder};
use arb_alloy::{network::Arbitrum, provider::ArbProviderExt};

#[tokio::main()]
async fn main() {
    let provider = ProviderBuilder::<_, _, Arbitrum>::default()
        .connect("http://localhost:8547")
        .await.unwrap();

    let latest = provider.get_block_number().await.unwrap();
    println!("latest block: {latest}");

    let _ = provider.arb_maintenance_status().await;
}

Documentation

This workspace contains:

  • arb-alloy-consensus: Arbitrum consensus transaction and receipt types.
  • arb-alloy-network: Network implementation for Arbitrum.
  • arb-alloy-rpc-types: Arbitrum RPC request/response types.
  • arb-alloy-provider: provider extension traits for arb_* RPC methods.
  • arb-sequencer-network: Arbitrum sequencer feed protocol types.
  • arb-alloy: umbrella crate re-exporting the components above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages