df-lighter-core 0.0.1-beta

Lighter SDK for Rust: markets, account, trading, transfers, pools and binary options on Lighter and on Robinhood Chain, with exact decimals and the API key signer in Rust. Native and wasm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `account_tx`: the transactions that touch an account, as the sequencer executed them, each the
//! [`Transaction`] the `tx` read answers. A transaction `sendTx` took (over HTTP or the socket) is
//! only taken; this channel says whether it ran.

use crate::account::history::Transaction;
use crate::utils::AccountIndex;

/// `account_tx`. Needs the account's auth token.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct AccountTx {
    /// From the channel.
    pub account: AccountIndex,
    pub txs: Vec<Transaction>,
}