diff --git a/src/pages/slot/rpc.md b/src/pages/slot/rpc.md index 9e1d625..3ab171c 100644 --- a/src/pages/slot/rpc.md +++ b/src/pages/slot/rpc.md @@ -127,3 +127,30 @@ Remove a domain from the CORS whitelist: ```bash slot rpc whitelist remove --team ``` + +### Viewing RPC Logs + +View RPC request logs for your team: + +```bash +slot rpc logs --team +``` + +#### Options + +- `--after `: Fetch logs after a specific cursor for pagination +- `--limit `: Limit the number of log entries returned (default: 100) +- `--since `: Fetch logs from a specific time period (e.g., `30m`, `1h`, `24h`) + +#### Examples + +```bash +# View the last 5 log entries from the past 30 minutes +slot rpc logs --team my-team --limit 5 --since 30m + +# Paginate through logs using a cursor +slot rpc logs --team my-team --after gaFpuWNtaDVhZ3k2Nzc2c2gwMWR4N3FsYXlhc2s --limit 5 + +# View recent logs with time filter +slot rpc logs --team my-team --since 1h +```