149 lines
5.6 KiB
JSON
149 lines
5.6 KiB
JSON
{
|
|
"format_version": 2,
|
|
"retry": {
|
|
"max_retries": 3,
|
|
"initial_backoff_ms": 150,
|
|
"max_backoff_ms": 3000
|
|
},
|
|
"ws_defaults": {
|
|
"command_timeout_ms": 10000,
|
|
"close_timeout_ms": 5000,
|
|
"reconnect": {
|
|
"max_retries": 5,
|
|
"initial_backoff_ms": 250,
|
|
"max_backoff_ms": 5000
|
|
},
|
|
"resubscribe": "active_subscriptions",
|
|
"command_queue_capacity": 128,
|
|
"notification_queue_capacity": 256,
|
|
"max_active_subscriptions": 1024,
|
|
"max_pending_requests": 128,
|
|
"max_message_size_bytes": 67108864,
|
|
"max_frame_size_bytes": 16777216,
|
|
"max_write_buffer_size_bytes": 1048576
|
|
},
|
|
"default_profile": "mainnet_mixed",
|
|
"profiles": [
|
|
{
|
|
"profile_id": "mainnet_mixed",
|
|
"endpoints": [
|
|
{
|
|
"name": "mainnet_public",
|
|
"enabled": true,
|
|
"provider": "solana-public",
|
|
"cluster": "mainnet",
|
|
"url": "${KSP_PUBLIC_SOLANA_MAINNET_HTTP_URL:-https://api.mainnet.solana.com}",
|
|
"connect_timeout_ms": 5000,
|
|
"request_timeout_ms": 15000,
|
|
"max_idle_connections_per_host": 8,
|
|
"roles": [
|
|
{
|
|
"role": "default",
|
|
"enabled": true,
|
|
"request_kinds": [
|
|
"*"
|
|
],
|
|
"priority": 200,
|
|
"limits": {
|
|
"requests_per_second": 5,
|
|
"burst_capacity": 10,
|
|
"max_concurrent_requests": 8,
|
|
"pause_after_rate_limit_ms": 1000
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "mainnet_private",
|
|
"enabled": true,
|
|
"provider": "private-provider",
|
|
"cluster": "mainnet",
|
|
"url": "${KSP_SECRET_SOLANA_HTTP_URL:-https://example.invalid}",
|
|
"connect_timeout_ms": 5000,
|
|
"request_timeout_ms": 10000,
|
|
"max_idle_connections_per_host": 16,
|
|
"roles": [
|
|
{
|
|
"role": "default",
|
|
"enabled": true,
|
|
"request_kinds": [
|
|
"*"
|
|
],
|
|
"priority": 100,
|
|
"limits": {
|
|
"requests_per_second": 20,
|
|
"burst_capacity": 40,
|
|
"max_concurrent_requests": 16,
|
|
"pause_after_rate_limit_ms": 750
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ws_endpoints": [
|
|
{
|
|
"name": "mainnet_public_ws",
|
|
"enabled": true,
|
|
"provider": "solana-public",
|
|
"cluster": "mainnet",
|
|
"kind": "solana_standard",
|
|
"url": "${KSP_PUBLIC_SOLANA_MAINNET_WS_URL:-wss://api.mainnet.solana.com}"
|
|
},
|
|
{
|
|
"name": "mainnet_helius_ws",
|
|
"enabled": true,
|
|
"provider": "helius",
|
|
"cluster": "mainnet",
|
|
"kind": "helius_laserstream",
|
|
"url": "wss://mainnet.helius-rpc.com/?api-key=${KSP_SECRET_HELIUS_API_KEY:-replace-me}",
|
|
"session": {
|
|
"notification_queue_capacity": 512,
|
|
"max_active_subscriptions": 2048
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"profile_id": "devnet_helius",
|
|
"endpoints": [
|
|
{
|
|
"name": "devnet_public",
|
|
"enabled": true,
|
|
"provider": "solana-public",
|
|
"cluster": "devnet",
|
|
"url": "${KSP_PUBLIC_SOLANA_DEVNET_HTTP_URL:-https://api.devnet.solana.com}",
|
|
"connect_timeout_ms": 5000,
|
|
"request_timeout_ms": 15000,
|
|
"max_idle_connections_per_host": 8,
|
|
"roles": [
|
|
{
|
|
"role": "default",
|
|
"enabled": true,
|
|
"request_kinds": [
|
|
"*"
|
|
],
|
|
"priority": 100,
|
|
"limits": {
|
|
"requests_per_second": 5,
|
|
"burst_capacity": 10,
|
|
"max_concurrent_requests": 8,
|
|
"pause_after_rate_limit_ms": 1000
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ws_endpoints": [
|
|
{
|
|
"name": "devnet_helius_ws",
|
|
"enabled": true,
|
|
"provider": "helius",
|
|
"cluster": "devnet",
|
|
"kind": "helius_laserstream",
|
|
"url": "wss://devnet.helius-rpc.com/?api-key=${KSP_SECRET_HELIUS_API_KEY:-replace-me}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|