genesis.json description - Second-Earth/setchain GitHub Wiki

{
"config": {
"bootnodes": [], // Other node information, when the node is started, the historical block will be synchronized from the node configured here
"chainId": 1, // chain id, use this value to determine whether it is the same chain
"chainName": "set", // chain name
"chainUrl": "https://scan.setcoin.net",
"accountParams": {// Account configuration information
"level": 0, // The maximum number of sub-account levels, 0 means that sub-accounts are not supported, 1 means that level 1 sub-accounts (such as set.admin) are supported, and so on (level 2: set.admin.abc)
"length": 16, //Maximum length of the main account
"subLength": 8 // Maximum length of sub account
},
"assetParams": {// Asset name configuration information
"level": 2, // The maximum number of sub-assets, 0 means that sub-assets are not supported, 1 means that level 1 sub-assets are supported, and so on
"length": 16, // The maximum length of the main asset
"subLength": 8 // Maximum length of sub-asset
},
"chargeParams": {// Handling fee distribution ratio
"assetRatio": 80, // 80 means that the creator of the asset shares 80% of the handling fee
"contractRatio": 80 // 80 means that the contract creator shares 80% of the handling fee
},
"upgradeParams": {
"blockCnt": 10000,
"upgradeRatio": 80
},
"dposParams": {
"maxURLLen": 512, // Maximum length of url
"unitStake": 1000, // 1000 refers to every 1000 sets as one vote. For example, if you have 10000 sets, you can vote for 10 votes
"candidateAvailableMinQuantity": 10, // The minimum number of snapshot votes that a candidate can be voted for. If it is lower than this number, it cannot be voted by others
"candidateMinQuantity": 10, // The minimum number of mortgage votes required to register a candidate, which is the number of votes the producer gives to himself
"voterMinQuantity": 1, // The minimum number of votes the user
"activatedMinCandidate": 3, // The minimum number of candidates required to activate the dpos consensus. Only when this number is reached, the dpos consensus will start
                                                 // This number is generally greater than or equal to candidateScheduleSize + backupScheduleSize
"activatedMinQuantity": 100, // The minimum total number of votes to activate dpos (the number of mortgage votes selected after the package)
"blockInterval": 3000, // Block interval
"blockFrequency": 6, // The number of blocks that can be continuously produced by each block node
"candidateScheduleSize": 3, // The total number of nodes required to generate blocks in each cycle
"backupScheduleSize": 0, // The number of backup node producing blocks. When the normal producing node cannot produce blocks due to abnormal problems, it will be topped by the backup node
"epochInterval": 10800000, // The duration of a block cycle, in milliseconds, here is three hours as a block cycle
"freezeEpochSize": 3, // After the producer cancels, the mortgage amount can only be retrieved after 3 cycles
"extraBlockReward": 1, // Additional block issuance rewards
"blockReward": 5 // Block additional issuance reward
},
"snapshotInterval": 3600000, // Snapshot period, in milliseconds, that is, take a data snapshot every hour
"systemName": "set.admin", // The following set.*** is the name of each system account, which will be used in specific trading scenarios
"accountName": "set.account",
"assetName": "set.asset",
"dposName": "set.dpos",
"feeName": "set.fee",
"systemToken": "settoken" // platform token name
},
"timestamp": 1555776000000, // Genesis block start timestamp
"gasLimit": 30000000, // The maximum number of gas that can be consumed per block
"difficulty": 131072, // Difficulty of block generation
"allocAccounts": [{ // Configure public key and founder for each system account
"name": "set.founder", // the name of the account to be created
"founder": "set.founder", // creator, note: when the name of the creator's account is different from the name of the account to be created, the creator's account must already exist
"pubKey": "0x047db227d7094ce215c3a0f57e1bcc732551fe351f94249471934567e0f5dc1bf795962b8cccb87a2eb56b29fbe37d614e2f4c3c45b789ae4f1f51f4cb21972ffd" // Create a public key bound to the account
}, {
"name": "set.account",
"founder": "set.founder",
"pubKey": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" // If the public key bound to the new account is all 0s, it means that this account cannot send transactions (because the private key is unknown)
}, {
"name": "set.asset",
"founder": "set.founder",
"pubKey": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}, {
"name": "set.dpos",
"founder": "set.founder",
"pubKey": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}, {
"name": "set.fee",
"founder": "set.founder",
"pubKey": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}],
"allocCandidates": [],
"allocAssets": [{ // Configure platform token information
"name": "settoken",
"symbol": "set",
"amount": 10000000000000000000000000000,
"decimals": 18,
"founder": "set.founder",
"owner": "set.founder",
"upperLimit": 10000000000000000000000000000
}]
}
⚠️ **GitHub.com Fallback** ⚠️