Skip to content

Commit 32923a4

Browse files
committed
feat(json_rpc): add convenience aliases for getBalance2
1 parent e1ddd4d commit 32923a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • node/src/actors/json_rpc

node/src/actors/json_rpc/api.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,8 @@ pub async fn query_powers(params: Result<QueryStakingPowers, Error>) -> JsonRpcR
23362336
#[serde(rename_all = "lowercase")]
23372337
pub enum GetBalance2Params {
23382338
/// sum up balances of all specified comma-separated addresses
2339+
#[serde(alias = "address")]
2340+
#[serde(alias = "pkh")]
23392341
#[serde(alias = "pkhs")]
23402342
Addresses(String),
23412343
/// get balances for all holders within specified limits

0 commit comments

Comments
 (0)