Configuring Network Information

Blockchain-related settings must be specified in the Network.json file. Use private RPC endpoints for reliability, as public ones can lead to pending tasks. The structure of Network.json is as follows:

[
  {
    "Name": "ETH", 
    "ChainID": 1,
    "RpcUrls": [
        "https://mainnet.infura.io/v3/*************",
        "https://rpc.ankr.com/eth/*************"
    ],
    "PayDB": "{Address of the PayDB Contract}",
    "ScanBlockNumPerRoundDecimal": "{Maximum number of blocks to scan in a single round}",
    "ReservedBlockNumDecimal": "{Reserved block height from the highest block}",
    "InitialBlockHeight": "{Initial block height}",
    "RpcMaxCallFrequency": "{Maximum frequency of RPC calls (in milliseconds)}",
    "ChainEventFilterFrequency": "{Event listening frequency after reaching the highest block, related to the block generation speed}"
  },
  ...
]

Last updated