Core Concepts
Transaction History
Pollar uses Horizon (and RPC where applicable) to read network state: balances, transactions and contract results.
Queries from the SDK
The StellarClient in @pollar/core exposes typical queries:
- Balances:
getBalance(address)to get balances for an account. - Transactions: payment preparation and contract invocation return XDR; submission returns
txHashso the app can track the transaction in an explorer or Horizon.
Typical flow
- The app gets wallet context (address, state) via the SDK.
- For a payment:
preparePayment(...)→ app or Relay signs and submits →txHashis returned. - For a contract:
prepareContractInvocation(...)→ sign and submit →txHashand result.
Detailed history (list of transactions per account, pagination, filters) can be implemented in your backend by calling Horizon with the wallet address, or extended in the SDK in future versions.