|
| 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 | +``` |
| 25 | + |
| 26 | + |
| 27 | +### ChainID |
| 28 | +```toml |
| 29 | +ChainID = 'foobar' # Example |
| 30 | +``` |
| 31 | +ChainID is the Tron chain ID. |
| 32 | + |
| 33 | +### Enabled |
| 34 | +```toml |
| 35 | +Enabled = true # Default |
| 36 | +``` |
| 37 | +Enabled enables this chain. |
| 38 | + |
| 39 | +### BalancePollPeriod |
| 40 | +```toml |
| 41 | +BalancePollPeriod = '5s' # Default |
| 42 | +``` |
| 43 | +BalancePollPeriod is the poll period for balance monitoring |
| 44 | + |
| 45 | +### BroadcastChanSize |
| 46 | +```toml |
| 47 | +BroadcastChanSize = 4096 # Default |
| 48 | +``` |
| 49 | +BroadcastChanSize is the transaction broadcast channel size |
| 50 | + |
| 51 | +### ConfirmPollPeriod |
| 52 | +```toml |
| 53 | +ConfirmPollPeriod = '500ms' # Default |
| 54 | +``` |
| 55 | +ConfirmPollPeriod is the polling period for transaction confirmation |
| 56 | + |
| 57 | +### OCR2CachePollPeriod |
| 58 | +```toml |
| 59 | +OCR2CachePollPeriod = '5s' # Default |
| 60 | +``` |
| 61 | +OCR2CachePollPeriod is the polling period for OCR2 contract cache |
| 62 | + |
| 63 | +### OCR2CacheTTL |
| 64 | +```toml |
| 65 | +OCR2CacheTTL = '1m' # Default |
| 66 | +``` |
| 67 | +OCR2CacheTTL is the time to live for OCR2 contract cache |
| 68 | + |
| 69 | +## Nodes |
| 70 | +```toml |
| 71 | +[[Nodes]] |
| 72 | +Name = 'primary' # Example |
| 73 | +URL = 'https://api.trongrid.io/wallet' # Example |
| 74 | +SolidityURL = 'http://api.trongrid.io/wallet' # Example |
| 75 | +``` |
| 76 | + |
| 77 | + |
| 78 | +### Name |
| 79 | +```toml |
| 80 | +Name = 'primary' # Example |
| 81 | +``` |
| 82 | +Name is a unique (per-chain) identifier for this node. |
| 83 | + |
| 84 | +### URL |
| 85 | +```toml |
| 86 | +URL = 'https://api.trongrid.io/wallet' # Example |
| 87 | +``` |
| 88 | +URL is the full node HTTP endpoint for this node. |
| 89 | + |
| 90 | +### SolidityURL |
| 91 | +```toml |
| 92 | +SolidityURL = 'http://api.trongrid.io/wallet' # Example |
| 93 | +``` |
| 94 | +SolidityURL is the solidity node HTTP endpoint for this node. |
| 95 | + |
0 commit comments