MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / getAccountBalance

Method getAccountBalance

cmd/cql-eth-exchange/exchange.go:573–588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571}
572
573func (e *Exchange) getAccountBalance() (balance uint64, err error) {
574 var (
575 req = new(ctypes.QueryAccountTokenBalanceReq)
576 resp = new(ctypes.QueryAccountTokenBalanceResp)
577 )
578
579 req.TokenType = e.cfg.TokenType
580 req.Addr = e.vaultAddress
581
582 err = mux.RequestBP(route.MCCQueryAccountTokenBalance.String(), req, resp)
583 if err == nil {
584 balance = resp.Balance
585 }
586
587 return
588}
589
590func (e *Exchange) getAccountNonce() (nonce cinter.AccountNonce, err error) {
591 var (

Callers 1

processPendingTxsMethod · 0.95

Calls 2

RequestBPFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected