POKTscan What To Stake Consumer. https://github.com/pokt-scan/what-to-stake-consumer
1.0K
This tool provides optimal* deployments of a series of nodes in the POKT Network.
Before using the provided recommendations, it's important to understand several key points regarding the optimization process:
The optimization results are optimal given the aforementioned simplifications.
config.json.sample and name it config.json.config.json with your desired values.go generate.docker compose up --build.config.json Values{
"dry_mode": true, // If true, calls to "What to Stake" will write results to `results_path` or print them if `results_path` is empty.
"poktscan_api": "https://api.poktscan.com/poktscan/api/graphql", // POKTscan API endpoint
"poktscan_api_token": "", // POKTscan API token
"network_id": "testnet", // Can be "mainnet" or "testnet"
"tx_memo": "wtsc", // Transaction memo
"tx_fee": 10000, // Transaction fee
"domain": "example.com", // Your nodes domain (e.g., "poktscan.cloud" or "c0d3r.org")
"chain_pool": ["0021", "0003"], // Chain IDs available in your fleet
"servicer_keys": ["PRIVATE_KEY"], // List of private keys for signing stake transactions
"stake_weight": 4, // Used by the "What to Stake" service to estimate potential rewards (1-4)
"min_increase_percent": 5, // Minimum percentage increase expected to process stakes
"min_service_stake": [ // Minimum number of nodes for specific services
{
"service": "0021",
"min_node": 1
}
],
"time_period": 24, // Time in hours to consider for relay averages
"results_path": "", // Path to save "What to Stake" results (empty to disable)
"pocket_rpc": "http://localhost:8081", // Pocket node or load balancer URL
"log_level": "debug", // Log level
"log_format": "json", // Log format (json or colorized text)
"schedule": "@every 5m", // Frequency of the "What to Stake" service calls
"max_workers": 1, // Number of workers to process stake transactions in parallel
"max_retries": 1, // Number of retries for HTTP calls (POKTscan API or Pocket RPC)
"max_timeout": 15000 // Timeout in milliseconds for HTTP calls
}
config.json?No, the service supports hot reload, configurable via the RELOAD_SECONDS environment variable.
Content type
Image
Digest
sha256:5f3f0f491…
Size
12.8 MB
Last updated
about 2 years ago
docker pull poktscan/wtsc