2.6.3.2 On-Chain Data Retrieval

• Connect to a block explorer API or aggregator (Etherscan, Alchemy, Moralis) to fetch:

• Balances: for each token in the user’s wallet.

• Transaction Histories: to power the user’s trade timeline or copy trading triggers.

• Caching: Store frequently queried wallet data in Redis (e.g., for popular lead traders).

• Security: Avoid storing private keys server-side; only keep public addresses or watch events.

Last updated