Skip to content

magicblock-labs/magicblock-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

magicblock-sync

Real-time synchronization of delegation records states via Laserstream.

let channels = DlpSyncer::start(endpoint, api_key).await?;
let (requester, mut updates) = channels.split();

requester.subscribe(record_pubkey).await;

while let Some(update) = updates.recv().await {
    match update {
        AccountUpdate::Delegated { record, data, slot } => { /* ... */ }
        AccountUpdate::Undelegated { record, slot } => { /* ... */ }
        AccountUpdate::SyncTerminated => break,
    }
}

See src/lib.rs for API docs.

About

Real time magicblock synchronization library for account delegation status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages