diff --git a/client/server/bank.go b/client/server/bank.go index 34128352..a6c2fb23 100644 --- a/client/server/bank.go +++ b/client/server/bank.go @@ -127,7 +127,7 @@ func (s *Server) GetBalancesByAddressDenom(req *getBalancesByAddressDenomRequest } // GetSpendableBalancesByAddress queries the spendable balance of all coins for a single account. -func (s *Server) GetSpendableBalancesByAddress(req *getBalancesByAddressRequest, r *http.Request) (resp any, err error) { +func (s *Server) GetSpendableBalancesByAddress(req *getSpendableBalancesByAddressRequest, r *http.Request) (resp any, err error) { queryContext, err := s.createQueryContextByHeader(r) if err != nil { return nil, err @@ -151,7 +151,7 @@ func (s *Server) GetSpendableBalancesByAddress(req *getBalancesByAddressRequest, } // GetSpendableBalancesByAddressDenom queries the spendable balance of a single coin for a single account. -func (s *Server) GetSpendableBalancesByAddressDenom(req *getBalancesByAddressDenomRequest, r *http.Request) (resp any, err error) { +func (s *Server) GetSpendableBalancesByAddressDenom(req *getSpendableBalancesByAddressDenomRequest, r *http.Request) (resp any, err error) { queryContext, err := s.createQueryContextByHeader(r) if err != nil { return nil, err diff --git a/client/server/payload.go b/client/server/payload.go index d1de39e1..023a6d28 100644 --- a/client/server/payload.go +++ b/client/server/payload.go @@ -33,6 +33,14 @@ type getBalancesByAddressDenomRequest struct { Denom string `mapstructure:"denom"` } +type getSpendableBalancesByAddressRequest struct { + Pagination pagination `mapstructure:"pagination"` +} + +type getSpendableBalancesByAddressDenomRequest struct { + Denom string `mapstructure:"denom"` +} + type getDenomOwnersRequest struct { Pagination pagination `mapstructure:"pagination"` }