Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
walletd_getbalance [2018/02/27 13:37]
stevebrush
walletd_getbalance [2019/01/10 23:47] (current)
Line 1: Line 1:
 ==== iridium_walletd getBalance method ==== ==== iridium_walletd getBalance method ====
 +
 +The getBalance method returns the balance for a specified address.
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]
  
 +**note :** If address is not specified, returns a cumulative balance of all RPC Wallet'​s addresses.
 +
 +Input:
 +
 +^Argument^Mandatory^Description^Format^Example^
 +|address| ​ No  |Valid and existing address in this particular wallet|string| ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs|
 +
 +Output:
 +
 +^Argument^Description^Format^Example^
 +|availableBalance|Available balance of the specified address|uint64|123123|
 +|lockedAmount|Locked amount of the specified address|uint64|123123|
 +
 +Input example:
 +
 +<code json>
 +{  ​
 +  '​params':​{  ​
 +     '​address':'​ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs'​
 +  },
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​method':'​getBalance'​
 +}
 +</​code>​
 +
 +OUtput example:
 +
 +<code json>
 +{  ​
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​result':​{  ​
 +     '​lockedAmount':​200030004,​
 +     '​availableBalance':​1000200030004
 +  }
 +}
 +</​code>​
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]