NEO.GetGasPerBlock Method ()
Gets the number of GAS generated in each block.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
#
Syntaxpublic static extern BigInteger GetGasPerBlock();
#
Examplepublic class Contract1 : SmartContract.Framework.SmartContract{ public static object Test() { BigInteger result = NEO.GetGasPerBlock(); return result; }}
Response body:
{ "Type":"Integer", "value":"100000000"}
Response description:
Integer type: the number of GAS generated in each block
Others: failed