Documentation ¶
Overview ¶
nolint
nolint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryBalancesRequestHandlerFn ¶
func QueryBalancesRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
swagger:route GET /bank/balances/{address} bank bankBalanceByAddress It returns the matic balance of particular address responses:
200: bankBalanceByAddressResponse
QueryBalancesRequestHandlerFn query accountREST Handler
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes - Central function to define routes that get registered by the main application
func SendRequestHandlerFn ¶
func SendRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
swagger:route POST /bank/accounts/{address}/transfers bank bankBalanceTransfer It returns the prepared msg for the transfer of balance from one account to another. responses:
200: bankBalanceTransferResponse
SendRequestHandlerFn - http request handler to send coins to a address.
Types ¶
type SendReq ¶
type SendReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Amount sdk.Coins `json:"amount" yaml:"amount"` }
SendReq defines the properties of a send request's body.
type SendReqInput ¶ added in v0.3.2
type SendReqInput struct { //required:true //in:body BaseReq BaseReq `json:"base_req"` //required:true //in:body Amount []coin `json:"amount"` }
Click to show internal directories.
Click to hide internal directories.