pub struct IcrcAccountTransactionPageRequest {
pub source_endpoint: String,
pub now_unix_secs: u64,
pub ledger_canister_id: String,
pub index_canister_id: Option<String>,
pub account_owner: String,
pub subaccount_hex: Option<String>,
pub start: Option<String>,
pub limit: u32,
}Expand description
IcrcAccountTransactionPageRequest
Request accepted by the live ICRC index account-transaction page builder.
Fields§
§source_endpoint: StringIC API endpoint used for ledger and index queries.
now_unix_secs: u64Collection time as Unix seconds.
ledger_canister_id: StringLedger canister whose account history is requested.
index_canister_id: Option<String>Optional explicit index canister; otherwise ICRC-106 discovery is used.
account_owner: StringAccount owner principal.
subaccount_hex: Option<String>Optional normalized 32-byte subaccount hex.
start: Option<String>Optional exclusive block-index cursor for backward pagination.
limit: u32Maximum number of account transactions to request.
Implementations§
Source§impl IcrcAccountTransactionPageRequest
impl IcrcAccountTransactionPageRequest
Sourcepub fn new(
source_endpoint: impl Into<String>,
now_unix_secs: u64,
ledger_canister_id: impl Into<String>,
account_owner: impl Into<String>,
limit: u32,
) -> Self
pub fn new( source_endpoint: impl Into<String>, now_unix_secs: u64, ledger_canister_id: impl Into<String>, account_owner: impl Into<String>, limit: u32, ) -> Self
Constructs an account-history request that discovers the index through the ledger.
Sourcepub fn with_index_canister_id(
self,
index_canister_id: impl Into<String>,
) -> Self
pub fn with_index_canister_id( self, index_canister_id: impl Into<String>, ) -> Self
Uses an explicit index canister instead of ICRC-106 discovery.
Sourcepub fn with_subaccount_hex(self, subaccount_hex: impl Into<String>) -> Self
pub fn with_subaccount_hex(self, subaccount_hex: impl Into<String>) -> Self
Selects a 32-byte ICRC subaccount encoded as hex.
Sourcepub fn with_start(self, start: impl Into<String>) -> Self
pub fn with_start(self, start: impl Into<String>) -> Self
Starts after the given transaction block index when paginating backward.
Trait Implementations§
Source§impl Clone for IcrcAccountTransactionPageRequest
impl Clone for IcrcAccountTransactionPageRequest
Source§fn clone(&self) -> IcrcAccountTransactionPageRequest
fn clone(&self) -> IcrcAccountTransactionPageRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more