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

Method get_block

raiden/network/rpc/client.py:1077–1079  ·  view source on GitHub ↗

Given a block number, query the chain to get its corresponding block hash

(self, block_identifier: BlockIdentifier)

Source from the content-addressed store, hash-verified

1075 return self.web3.eth.block_number
1076
1077 def get_block(self, block_identifier: BlockIdentifier) -> BlockData:
1078 """Given a block number, query the chain to get its corresponding block hash"""
1079 return self.web3.eth.getBlock(block_identifier)
1080
1081 def _sync_nonce(self) -> None:
1082 self._available_nonce = discover_next_available_nonce(

Callers 15

loop_until_stopMethod · 0.80
_new_netting_channelMethod · 0.80
set_total_withdrawMethod · 0.80
_set_total_withdrawMethod · 0.80
_closeMethod · 0.80
update_transferMethod · 0.80
_update_transferMethod · 0.80

Calls 1

getBlockMethod · 0.45