Import
Signature
Constructor parameters
Pre-configured
algosdk.v2client.indexer.IndexerClient instance. If provided,
overrides indexer_url and indexer_token.Attributes
Examples
Methods
for_network
"mainnet" and "testnet" (AlgoNode),
or localhost for "localnet". Custom URLs/tokens override network defaults.
Parameters
Custom indexer endpoint URL. If None, uses default endpoint for the network.
past_usage
address was the sender and pay_to
was the receiver for payment (ALGO) or asset transfer (ASA) transactions.
Notes
Paginates through all matching indexer transactions and tallies successful
payments matching the target recipient and asset ID.
Parameters
Returns
Sum of transaction amounts transferred within the window, in base units
(microALGO for ALGO, or base atomic units for ASAs). Returns 0 on query errors.
has_active_subscription
address currently holds a non-zero balance of asset_id,
and that the most recent incoming transfer of that asset occurred within the last
max_age_days days.
Parameters
If provided, only transfers originating from this sender address count
as valid subscription issuances.
True if the subscriber currently holds the asset and the latest transfer
is within
max_age_days, False otherwise.active_passes
pay_to address
with note prefix x402-pass:<scope> whose transfer amount is at least the
price specified for that scope in scopes.
Notes
If multiple payments exist for the same scope, the newest payment within
the validity window takes precedence.
Parameters
Mapping of pass scope names (e.g.,
{"listing:tts-1": 50000}) to their
minimum purchase prices.Sorted list of active pass records ordered by round time. Each dictionary contains:
"scope" (str), "txid" (str), "amount" (int),
"round_time" (int), and "expires" (float).has_pass
See also
for_network: Factory constructor resolving indexer endpoints by network name.