1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::sync::Arc; use solana_client::nonblocking::rpc_client::RpcClient; pub struct Scan { client: Arc<RpcClient>, } impl Scan { /// create scan pub async fn new(client: Arc<RpcClient>) -> Self { Self { client: client } } }