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.


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

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference