MCPcopy
hub / github.com/raiden-network/raiden / balance

Method balance

raiden/network/rpc/client.py:1115–1117  ·  view source on GitHub ↗

Return the balance of the account of the given address.

(self, account: Address)

Source from the content-addressed store, hash-verified

1113
1114 # FIXME: shouldn't return `TokenAmount`
1115 def balance(self, account: Address) -> TokenAmount:
1116 """Return the balance of the account of the given address."""
1117 return TokenAmount(self.web3.eth.get_balance(account, BLOCK_ID_PENDING))
1118
1119 def parity_get_pending_transaction_hash_by_nonce(
1120 self, address: AddressHex, nonce: Nonce

Callers 2

mainFunction · 0.95
has_enough_gas_reserveFunction · 0.45

Calls 1

get_balanceMethod · 0.45

Tested by

no test coverage detected