|
| 1 | +[//]: # (Documentation generated from docs.toml - DO NOT EDIT.) |
| 2 | +This document describes the TOML format for configuration. |
| 3 | +## Example |
| 4 | + |
| 5 | +```toml |
| 6 | +ChainID = '<id>' |
| 7 | + |
| 8 | +[[Tron.Nodes]] |
| 9 | +Name = 'primary' |
| 10 | +URL = '<full node http url>' |
| 11 | +SolidityURL = '<solidity http url>' |
| 12 | + |
| 13 | +``` |
| 14 | + |
| 15 | +## Global |
| 16 | +```toml |
| 17 | +ChainID = 'foobar' # Example |
| 18 | +Enabled = true # Default |
| 19 | +BalancePollPeriod = '5s' # Default |
| 20 | +BroadcastChanSize = 4096 # Default |
| 21 | +ConfirmPollPeriod = '500ms' # Default |
| 22 | +OCR2CachePollPeriod = '5s' # Default |
| 23 | +OCR2CacheTTL = '1m' # Default |
| 24 | +RetentionPeriod = 0 # Default |
| 25 | +ReapInterval = '1m' # Default |
| 26 | +``` |
| 27 | + |
| 28 | + |
| 29 | +### ChainID |
| 30 | +```toml |
| 31 | +ChainID = 'foobar' # Example |
| 32 | +``` |
| 33 | +ChainID is the Tron chain ID. |
| 34 | + |
| 35 | +### Enabled |
| 36 | +```toml |
| 37 | +Enabled = true # Default |
| 38 | +``` |
| 39 | +Enabled enables this chain. |
| 40 | + |
| 41 | +### BalancePollPeriod |
| 42 | +```toml |
| 43 | +BalancePollPeriod = '5s' # Default |
| 44 | +``` |
| 45 | +BalancePollPeriod is the poll period for balance monitoring |
| 46 | + |
| 47 | +### BroadcastChanSize |
| 48 | +```toml |
| 49 | +BroadcastChanSize = 4096 # Default |
| 50 | +``` |
| 51 | +BroadcastChanSize is the transaction broadcast channel size |
| 52 | + |
| 53 | +### ConfirmPollPeriod |
| 54 | +```toml |
| 55 | +ConfirmPollPeriod = '500ms' # Default |
| 56 | +``` |
| 57 | +ConfirmPollPeriod is the polling period for transaction confirmation |
| 58 | + |
| 59 | +### OCR2CachePollPeriod |
| 60 | +```toml |
| 61 | +OCR2CachePollPeriod = '5s' # Default |
| 62 | +``` |
| 63 | +OCR2CachePollPeriod is the polling period for OCR2 contract cache |
| 64 | + |
| 65 | +### OCR2CacheTTL |
| 66 | +```toml |
| 67 | +OCR2CacheTTL = '1m' # Default |
| 68 | +``` |
| 69 | +OCR2CacheTTL is the time to live for OCR2 contract cache |
| 70 | + |
| 71 | +### RetentionPeriod |
| 72 | +```toml |
| 73 | +RetentionPeriod = 0 # Default |
| 74 | +``` |
| 75 | +RetentionPeriod is the time for the tx manager to retain txes. |
| 76 | + |
| 77 | +### ReapInterval |
| 78 | +```toml |
| 79 | +ReapInterval = '1m' # Default |
| 80 | +``` |
| 81 | +ReapInterval is how often the tx manager cleans up old txes. |
| 82 | + |
| 83 | +## Nodes |
| 84 | +```toml |
| 85 | +[[Nodes]] |
| 86 | +Name = 'primary' # Example |
| 87 | +URL = 'https://api.trongrid.io/wallet' # Example |
| 88 | +SolidityURL = 'http://api.trongrid.io/wallet' # Example |
| 89 | +``` |
| 90 | + |
| 91 | + |
| 92 | +### Name |
| 93 | +```toml |
| 94 | +Name = 'primary' # Example |
| 95 | +``` |
| 96 | +Name is a unique (per-chain) identifier for this node. |
| 97 | + |
| 98 | +### URL |
| 99 | +```toml |
| 100 | +URL = 'https://api.trongrid.io/wallet' # Example |
| 101 | +``` |
| 102 | +URL is the full node HTTP endpoint for this node. |
| 103 | + |
| 104 | +### SolidityURL |
| 105 | +```toml |
| 106 | +SolidityURL = 'http://api.trongrid.io/wallet' # Example |
| 107 | +``` |
| 108 | +SolidityURL is the solidity node HTTP endpoint for this node. |
| 109 | + |
0 commit comments