Show / Hide Table of Contents

NEO.UnclaimedGas Method

Gets the number of unclaimed GAS.

Namespace: Neo.SmartContract.Framework.Native

Assembly: Neo.SmartContract.Framework


public static extern BigInteger UnclaimedGas(UInt160 account, uint end);


  • account: The script hash of the account to be queried;

  • end: To which block height the query ends.


public class Contract1 : SmartContract.Framework.SmartContract
    private static readonly UInt160 account = "NXsG3zwpwcfvBiA3bNMx6mWZGEro9ZqTqM".ToScriptHash();

    public static object Test()
        BigInteger result = NEO.UnclaimedGas(account, 100);
        return result;

Response body:


Response description:

  • Integer type: unclaimed GAS amount of this address is successfully requested.

  • Others: failed.