# Smart Contract Client Configuration # Copy this file and fill in your values # The gRPC server address to connect to server_address: "localhost:50051" # The public chain id on which this smart contract is registered. # Sent as the x-chain-id gRPC metadata header — prime rejects streams # without it. chain_id: "your-chain-public-id" # Your smart contract ID (provided by Dragonchain) smart_contract_id: "your-smart-contract-id" # API key for authentication (provided by Dragonchain) api_key: "your-api-key" # Whether to use TLS for the connection use_tls: false # Path to TLS certificate (required if use_tls is true) # tls_cert_path: "/path/to/cert.pem" # Number of worker goroutines for processing transactions concurrently num_workers: 10 # Reconnect settings. The client uses exponential backoff with jitter: # effective delay = min(max_backoff_seconds, reconnect_delay_seconds * 2^attempts) + random(0, reconnect_delay_seconds). # Keep max_reconnect_attempts at 0 (infinite) unless you have a specific # reason to stop — the client is designed to survive arbitrarily long # outages and resume processing from the prime-side queue when the # server returns. reconnect_delay_seconds: 3 max_backoff_seconds: 120 max_reconnect_attempts: 0 # 0 = infinite retries