https://github.com/chainbound/mevboost-relay-api
Rust wrapper for the Ethereum PBS Relay API
https://github.com/chainbound/mevboost-relay-api
Last synced: about 1 year ago
JSON representation
Rust wrapper for the Ethereum PBS Relay API
- Host: GitHub
- URL: https://github.com/chainbound/mevboost-relay-api
- Owner: chainbound
- License: mit
- Created: 2023-11-10T10:45:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T09:02:49.000Z (over 2 years ago)
- Last Synced: 2025-03-24T02:12:20.635Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mevboost relay api
> This crate implements the [PBS Relay API](https://flashbots.github.io/relay-specs/#/) specs in Rust.
> You can import this in your Cargo project, or use the CLI tool to run queries manually.
## Use as a library
Add this to your `Cargo.toml`:
```toml
[dependencies]
mevboost-relay-api = { git = "https://github.com/chainbound/mevboost-relay-api" }
```
Then you can use it in your code:
```rust
#[tokio::main]
pub async fn main() {
let client = mevboost_relay_api::Client::default();
let response = client.get_validators_for_current_and_next_epoch("flashbots").await.unwrap();
println!("{:?}", response);
}
```
You can see all available functionality in the [library documentation](./crates/mevboost-relay-api/README.md) file.
## Use as a CLI tool
> **Warning**
> This is not yet implemented.
```shell
cargo install --git https://github.com/chainbound/mevboost-relay-api
mevboost-relay-api --help
```
## License
MIT.
## Contributions
Contributions are welcome and encouraged. Please open an issue or submit a pull request.