Loading...
Loading...
Configure Cartridge RPC endpoints with API token authentication and CORS whitelisting.
npx skill4agent add cartridge-gg/docs slot-rpchttps://api.cartridge.gg/x/starknet/mainnethttps://api.cartridge.gg/x/starknet/sepoliacurl https://api.cartridge.gg/x/starknet/mainnet \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_chainId",
"params": [],
"id": 1
}'const response = await fetch('https://api.cartridge.gg/x/starknet/mainnet', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'starknet_chainId',
params: [],
id: 1,
}),
});# Create a token
slot rpc tokens create <KEY_NAME> --team <TEAM_NAME>
# List tokens
slot rpc tokens list --team <TEAM_NAME>
# Delete a token
slot rpc tokens delete <KEY_ID> --team <TEAM_NAME># Add a domain
slot rpc whitelist add <DOMAIN> --team <TEAM_NAME>
# List whitelisted domains
slot rpc whitelist list --team <TEAM_NAME>
# Remove a domain
slot rpc whitelist remove <ENTRY_ID> --team <TEAM_NAME>slot rpc logs --team <TEAM_NAME>--after <CURSOR>--limit <NUMBER>--since <DURATION>30m1h24h# Last 5 entries from past 30 minutes
slot rpc logs --team my-team --limit 5 --since 30m
# Paginate with cursor
slot rpc logs --team my-team --after <cursor> --limit 5