Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

get_transactions

Get wallet transactions for an authenticated user.


use mirrorworld_sdk_rust::{ get_transactions, login };
async fn run() {
// User should be authenticated
login( /*...*/ );
let result: &Transactions = get_transactions().await?;
}
// Return Types
// ============
#[derive(Debug, Serialize, Deserialize)]
pub struct Transactions {
pub count: u32,
pub next_before: Option<String>,
pub tokens: Option<Vec<Transaction>>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct Transaction {
#[serde(rename = "blockTime")]
pub block_time: Option<String>,
pub slot: Option<u32>,
pub meta: Option<Meta>,
pub transaction: Option<TransactionItem>
}
#[derive(Debug, Serialize, Deserialize)]
pub struct TransactionItem {
pub message: Message,
pub signatures: Option<String>,
}
// Error response if any
// =====================
#[derive(Debug, Serialize, Deserialize)]
pub struct Err {
#[serde(rename = "InstructionError")]
pub instruction_error: Option<String>,
}

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference