Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 569 Bytes

getunclaimedgas.md

File metadata and controls

38 lines (27 loc) · 569 Bytes

getunclaimedgas Method

Gets the amount of unclaimed GAS in the wallet.

  1. Install the plugin RpcServer
  2. Call the RPC method openwallet to open the wallet first.

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.