Contract Analytics
Each Contract Workspace includes a built-in analytics suite for its contract, found in in its Analytics section. It lets you record and visualize contract data as it evolves over time on the Stagenet. For example, you could track the fees collected by your NFT marketplace contract.
Tracked Data
You can record and visualize on-chain data related to a specific contract through its Contract Workspace. You can track three types of data:
- The contract’s ETH balance
- Its balance of a specific ERC-20 token (e.g. its USDC balance)
- Any value returned by one of the contract’s view functions (e.g.
totalSupply())
Data that is being tracked has its value recorded every time it changes on the Stagenet. For example, if your liquidity pool got funded with some USDC, its new USDC balance would be saved. You can inspect this data in graphs and tables.