diff --git a/src/types/enhanced_transaction_types.rs b/src/types/enhanced_transaction_types.rs index c3d0047..908918f 100644 --- a/src/types/enhanced_transaction_types.rs +++ b/src/types/enhanced_transaction_types.rs @@ -204,3 +204,15 @@ pub struct CompressedNftEvent { pub metadata: Option, pub update_args: Option, } + +#[derive(Serialize, Deserialize, Debug)] +pub struct ParseTransactionsRequest { + pub transactions: Vec, +} + +/// We have a limit of 100 transactions per call, so this helps split the signatures into different chunks +impl ParseTransactionsRequest { + pub fn from_slice(signatures: &[String]) -> Vec { + signatures.chunks(100).map(|chunk| Self { transactions: chunk.to_vec() }).collect() + } + } \ No newline at end of file