Skip to content

πŸ“Š Rust SDK for the Relay Data Transparency API on Ethereum πŸ“Š

License

Notifications You must be signed in to change notification settings

quartz-technology/redax-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

redax-rs

Rust SDK for the Relay Data Transparency API on Ethereum.

Getting Started

To install the SDK in your own go project, run the following command:

# Coming soon!

Examples

More examples will come soon ! You can find the existing examples in the examples directory of this repository.

Below is an example of the SDK usage with the default HTTP client:

use redax_rs::sdk::data::v1::GetBidsDeliveredRequest;
use redax_rs::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let clt = relay::RelayClient::new()?.with_api_url("https://boost-relay.flashbots.net")?;
    let relay_sdk = sdk::RelaySDK::new(clt);

    // Get the bids delivered.
    let bids_delivered = relay_sdk
        .data()
        .v1()
        .get_bids_delivered(GetBidsDeliveredRequest::default())
        .await?;

    // Print the first bid's value.
    println!("{:?}", bids_delivered[0].bid_trace.value.to_string());

    Ok(())
}

API

Below is a list of the supported API endpoints:

Name Status
/relay/v1/data/bidtraces/proposer_payload_delivered βœ…
/relay/v1/data/bidtraces/builder_blocks_received βœ…
/relay/v1/data/validator_registration βœ…

Issues

This SDK is still under active development, if you find any bug or have a feature request please submit an appropriate issue here.

Contributing

If you would like to contribute to this project, please refer to the instructions in the dedicated document here.

Authors

This project is a pure open-source contribution to the Ethereum ecosystem. It is currently maintained by the πŸ€– at Quartz Technology.

About

πŸ“Š Rust SDK for the Relay Data Transparency API on Ethereum πŸ“Š

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages