Skip to content
Available on private testnetTestnet: yesMainnet: Not availableSoftware: Core bad4a06ea · protocol pqwerai-v8-testnet/1Updated

Contract events

event Tipped(address indexed from, address indexed to, uint256 amount, uint256 fee);
emit Tipped(msg.sender, to, msg.value, fee);
  • Up to three indexed parameters become topics (filterable); the rest is ABI-encoded data.
  • topic0 is keccak256("Tipped(address,address,uint256,uint256)") (not for anonymous events).
  • Emit events before external calls (checks-effects-interactions).

Reading events

cast logs --from-block <n> --to-block <m> --address <contract> "Tipped(address indexed,address indexed,uint256,uint256)" --rpc-url "$RPC"

PQWERAI limits:

Limit Value
eth_getLogs block range ≤ 5000 blocks per request by default (--rpc.logs-max-range)
eth_getFilterLogs disabled — use eth_getLogs or eth_getFilterChanges
WebSocket eth_subscribe("logs") not available (HTTP only) — poll
Reorganisations logs above g4_status.finalized_height can be removed; removed: true appears in filter results

For history beyond a few thousand blocks, page through ranges or use the explorer API.


Found a problem? Report a documentation issue · Build testnet-rc1+72057fe3ec