func (cl *BenchClient) GetAllBalances() (balances map[string]uint64, err error) {

	if cl.PrivKey == nil {
		err = fmt.Errorf("Private key nonexistent, set or specify private key so the client can sign commands")
		return
	}

	balances = make(map[string]uint64)
	var reply *cxrpc.GetBalanceReply
	if reply, err = cl.GetBalance("regtest"); err != nil {
		return
	}

	balances["regtest"] = reply.Amount

	if reply, err = cl.GetBalance("vtcreg"); err != nil {
		return
	}
	balances["vtcreg"] = reply.Amount

	if reply, err = cl.GetBalance("litereg"); err != nil {
		return
	}
	balances["litereg"] = reply.Amount

	return
}
// GetAllBalances get the balance for every token
GetAllBalances get the balance for every token
// GetAllBalances get the balance for every token
func (cl *BenchClient) GetAllBalances() (balances map[string]uint64, err error) {
	if cl.PrivKey == nil {
		err = fmt.Errorf("Private key nonexistent, set or specify private key so the client can sign commands")
		return
	}
	balances = make(map[string]uint64)
	var reply *cxrpc.GetBalanceReply
	if reply, err = cl.GetBalance("regtest"); err != nil {
		return
	}
	balances["regtest"] = reply.Amount
	if reply, err = cl.GetBalance("vtcreg"); err != nil {
		return
	}
	balances["vtcreg"] = reply.Amount
	if reply, err = cl.GetBalance("litereg"); err != nil {
		return
	}
	balances["litereg"] = reply.Amount
	return
}
func ( cl * BenchClient ) GetAllBalances ( ) ( balances map [ string ] uint64 , err error ) { if cl . PrivKey == nil { err = fmt . Errorf ( " " ) return } balances = make ( map [ string ] uint64 ) var reply * cxrpc . GetBalanceReply if reply , err = cl . GetBalance ( " " ) ; err != nil { return } balances [ " " ] = reply . Amount if reply , err = cl . GetBalance ( " " ) ; err != nil { return } balances [ " " ] = reply . Amount if reply , err = cl . GetBalance ( " " ) ; err != nil { return } balances [ " " ] = reply . Amount return }
GetAllBalances get the balance for every token
GetAllBalances get the balance for every token