use crate::encoding::BinaryEncoding; use serde::{Deserialize, Serialize}; use solana_sdk::commitment_config::CommitmentLevel; #[derive(Debug, Default, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct SendTransactionConfig { // #[serde(default)] // pub skip_preflight: bool, // #[serde(default)] // pub preflight_commitment: CommitmentLevel, #[serde(default)] pub encoding: BinaryEncoding, pub max_retries: Option, // pub min_context_slot: Option, } #[derive(Debug, Default, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct IsBlockHashValidConfig { pub commitment: Option, // pub minContextSlot: Option, }