Skip to main content

Contract Parameters

Coordinator Parameters

These parameters are configured in the coordinator contract. You can view them by running getConfig on the coordinator.

  • uint16 minimumRequestConfirmations: The minimum number of confirmation blocks on VRF requests before oracles respond
  • uint32 maxGasLimit: The maximum gas limit supported for a fulfillRandomWords callback.
  • uint32 gasAfterPaymentCalculation: This is additional Gas, which is used to cover the extra operation cost during the callback process, as well as the cost paid to VRF Node.

Fee parameters

Fee parameters are configured in the coordinator contract and specify the premium you pay per request in addition to the gas cost for the transaction. You can view them by running getFeeConfig on the coordinator.

Configurations

PlatON Mainnet

ParameterValue
VRF Coordinator0x352981e09bd712d6b17184D08D456683A6859Ca2
KeyHash0xe4575574ec7483a8e35d9f210820a045db4939b54d0ff0e5b15f83ef1312e124
Premium10 LAT
Maximum Request Confirmations200
Minimum Confirmations3
Maximum Consumers100
Maximum Random Values500
Maximum GasLimit2500000
Maximum CallBackGasprice2GVon

PlatON Devnet2 Testnet

ItemValue
VRF Coordinator0x67dc19ca89EA3D322B8C7cC4AD2B3BA7bDF2d089
KeyHash0x818b4b257c281d2e4db77e3bb13733185a31ab805d863047ef7093e2379e87cd
Premium10 LAT
Maximum Request Confirmations200
Minimum Confirmations3
Maximum Consumers100
Maximum Random Values500
Maximum GasLimit2500000
Maximum CallBackGasprice2GVon