solana-trader 0.1.2

Implemented most of the commonly used practical transaction-related functions on the Solana network.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{str::FromStr, sync::Arc};

use solana_client::{
    nonblocking::rpc_client::RpcClient, rpc_client::GetConfirmedSignaturesForAddress2Config,
};
use solana_program::pubkey;
use solana_sdk::{clock::Epoch, native_token::LAMPORTS_PER_SOL, pubkey::Pubkey};

pub struct Orca {
    client: Arc<RpcClient>,
}
impl Orca {
    pub async fn new(client: Arc<RpcClient>) -> Self {
        Self { client: client }
    }
}