Esempio n. 1
0
 async def getUncleByBlockNumberAndIndex(self, at_block: Union[str, int],
                                         index: int) -> RpcHeaderResponse:
     block = await get_block_at_number(self.chain, at_block)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 2
0
 def getUncleByBlockNumberAndIndex(self, at_block, index):
     block = get_block_at_number(self._chain, at_block)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 3
0
 async def getUncleByBlockHashAndIndex(self, block_hash: Hash32,
                                       index: int) -> RpcHeaderResponse:
     block = await self.chain.coro_get_block_by_hash(block_hash)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 4
0
 def getUncleByBlockHashAndIndex(self, block_hash, index):
     block = self._chain.get_block_by_hash(block_hash)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 5
0
 async def getUncleByBlockHashAndIndex(self, block_hash: Hash32,
                                       index: int) -> Dict[str, str]:
     block = await self._chain.coro_get_block_by_hash(block_hash)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 6
0
 def getUncleByBlockNumberAndIndex(self,
                                   at_block: Union[str, int],
                                   index: int) -> Dict[str, str]:
     block = get_block_at_number(self._chain, at_block)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 7
0
 def getUncleByBlockNumberAndIndex(self, at_block, index):
     block = get_block_at_number(self._chain, at_block)
     uncle = block.uncles[index]
     return header_to_dict(uncle)
Esempio n. 8
0
 def getUncleByBlockHashAndIndex(self, block_hash, index):
     block = self._chain.get_block_by_hash(block_hash)
     uncle = block.uncles[index]
     return header_to_dict(uncle)