KeyValue: On-chain data ----> SQL: Relational database
- Real-time data:
- Call contract functions: e.g. Read Alice's deposit balance
- History data:
- Parsing Transaction Events: e.g. Keep a record of all deposits
- Call contract functions with block number
- Subscription Events
- eth_call
- eth_getlogs
- eth_gettransactionreceipt
- Eth_balance
- Show all deposits/withdraw records