// Initialize client
let url = Url::parse(EDEN_WSS_URL).unwrap();
let client = Client::new(url);
// Subscribe to a stream
let mut stream = client.subscribe_txs().await.unwrap();
// Listen for new pedning txs
while let Some(tx) = stream.next().await {
// types::EdenPendingTx
dbg!(&tx);
// ethers_core::types::Transaction
dbg!(&tx.into_ethers_tx());
...
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Compact client for dealing with Eden Mempool Streaming services
License
0xDmtri/eden-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Compact client for dealing with Eden Mempool Streaming services
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published