24 lines
742 B
Rust
24 lines
742 B
Rust
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<u16>,
|
|
// pub min_context_slot: Option<Slot>,
|
|
}
|
|
|
|
#[derive(Debug, Default, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct IsBlockHashValidConfig {
|
|
pub commitment: Option<CommitmentLevel>,
|
|
// pub minContextSlot: Option<u64>,
|
|
}
|