getwalletbalance

Returns the balance of the corresponding asset in the wallet, based on the specified asset number.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Before you can invoke this method, wallet must be open first.

Parameters

Object NameRequiredTypeDetail
ASSET IDStringThe NEP-17 contract script hash.

The asset ID for NEO is 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5

The asset ID for Gas is 0xd2a4cff31913016155e38e474a2c06d08be276cf

"params": ["0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5"]

Result

The balance of the corresponding asset in the wallet.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "method": "getwalletbalance", "params":["0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5"],"id": 1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "balance": "1"
    }
}
Path Params
string
required
Defaults to f98d19a38a6b437ea6c77b8e68e59119
Body Params
string
Defaults to {"jsonrpc": "2.0","id": 1,"method": "sendmany","params": ["NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",[{"asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf","value": 100,"address": "NUkaNyPbML2QYfxK99WqZYpR8rR4CyUoth"},{"asset": "0xd2a4cff31913016155e38e474a2c06d08be276cf","value": 200,"address": "NbEsLzt9J1eMw5mbuStYBSwMfPBuWDx9DL"}]]}
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json