(SOLANA) Canonical Solana RPC Condition Formatter
#[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct SolRpcCondition { pub method: String, pub params: Vec<serde_json::Value>, pub pda_params: Option<Vec<serde_json::Value>>, pub pda_interface: Option, pub chain: String, pub return_value_test: JsonReturnValueTestV2, }
Generated using TypeDoc
(SOLANA) Canonical Solana RPC Condition Formatter
need to return in the exact format below: but make sure we don't include the optional fields:
#[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct SolRpcCondition { pub method: String, pub params: Vec<serde_json::Value>, pub pda_params: Option<Vec<serde_json::Value>>, pub pda_interface: Option,
pub chain: String,
pub return_value_test: JsonReturnValueTestV2,
}
#[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct SolPdaInterface { pub offset: u64, pub fields: serde_json::Value, }
Returns