Last modified: 2024-09-23
getwalletunclaimedgas Method
Gets the amount of unclaimed GAS in the wallet.
Before you can invoke this method you must:
Install the plugin RpcServer
Call the RPC method
openwallet
to open the wallet first.
Exception
-
-302, No opened wallet.
Example
Request body:
{
"jsonrpc": "2.0",
"method": "getwalletunclaimedgas",
"params": ["NgaiKFjurmNmiRzDRQGs44yzByXuSkdGPF"],
"id": 1
}
Response body:
{
"jsonrpc": "2.0",
"id": 1,
"result": "750000000"
}
Response description:
Returns the unclaimed GAS amount.