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
pub mod wallet {
    /// convert the private key in base58 format to a byte array
    /// # params
    /// * private_key private key
    pub fn private_key_base58_to_bytes(private_key: &str) -> Result<Vec<u8>, String> {
        match bs58::decode(private_key).into_vec() {
            Ok(v) => return Ok(v),
            Err(_) => return Err("base58 decode error".to_string()),
        }
    }
}

pub mod account {}