Show / Hide Table of Contents

getunclaimedgas Method

Gets the amount of unclaimed GAS in the wallet.

Before you can invoke this method you must:

  • Open the wallet in NEO-CLI.

  • Install the plugin RpcWallet .

Example

Request body:

{
  "jsonrpc": "2.0",
  "method": "getunclaimedgas",
  "params": [],
  "id": 1
}

Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "available": "0.140771",
        "unavailable": "0.096224"
    }
}

Response description:

Returns the unclaimed GAS amount.