fenine_getContractConstants
fenine_* Methods
fenine_getContractConstants
Get important contract constants and configuration
GET
fenine_getContractConstants
Overview
Returns important contract constants and configuration values from the FenineSystem contract. Useful for understanding network parameters without querying the contract directly.Parameters
NoneResponse
string
FenineSystem contract address (always
0x0000000000000000000000000000000000001000)number
Number of blocks per epoch (200)
number
Maximum number of active validators (101)
string
Minimum validator self-stake in wei (10,000 FEN = “10000000000000000000000”)
string
Minimum delegator stake in wei (1,000 FEN = “1000000000000000000000”)
number
Validator unstake lock period in blocks (50,000 ≈ 3.5 days)
number
Delegator unstake lock period in blocks (25,000 ≈ 1.75 days)
number
Default commission rate in basis points (500 = 5%)
number
Maximum commission rate in basis points (1000 = 10%)
Examples
Response Example
Use Cases
Validate User Input
Validate User Input
Calculate Epoch Times
Calculate Epoch Times
Display Lock Period Info
Display Lock Period Info
Helper Functions
Related Methods
fenine_getSystemContractAddress
Get System Contract address
getCurrentEpoch
Get current epoch number