Skip to content

Commit 14672b7

Browse files
committed
add accountCoinBalance
1 parent 8ae1c32 commit 14672b7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

safeheron/api/account_api.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,21 @@ func (e *AccountApi) InfoAccountCoinAddress(d InfoAccountCoinAddressRequest, r *
260260
return e.Client.SendRequest(d, r, "/v1/account/coin/address/info")
261261
}
262262

263+
type AccountCoinBalanceRequest struct {
264+
CoinKeyList []string `json:"coinKeyList"`
265+
}
266+
267+
type AccountCoinBalanceResponse struct {
268+
BalanceList []struct {
269+
CoinKey string `json:"coinKey"`
270+
Balance string `json:"balance"`
271+
} `json:"balanceList"`
272+
}
273+
274+
func (e *AccountApi) AccountCoinBalance(d AccountCoinBalanceRequest, r *AccountCoinBalanceResponse) error {
275+
return e.Client.SendRequest(d, r, "/v1/account/coin/balance")
276+
}
277+
263278
type RenameAccountCoinAddressRequest struct {
264279
AddressGroupKey string `json:"addressGroupKey"`
265280
AddressGroupName string `json:"addressGroupName"`

0 commit comments

Comments
 (0)