Skip to main content
The History class from @holdstation/worldchain-sdk enables fetching transaction histories (such as sends, receives, swaps) associated with a wallet on WorldChain.

Installation

Setup


Overall Flow

  1. Call managerHistory.watch(address, callback).
  2. When new activity is detected, trigger refetch.
  3. Call walletHistory.find(offset, limit) to retrieve latest transactions.

πŸ”— Full Example on GitHub

Watch Real-time Transaction Updates

πŸ“‘ Parameters


ℹ️ Notes:
  • watch(address, callback) returns a { start, stop } object.
  • You must call start() to begin monitoring.
  • Always call stop() to properly clean up when the component unmounts.

πŸ“˜ Usage Example

Fetch Stored Transaction History

πŸ“‘ Parameters


πŸ“˜ Usage Example