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)
def getUncleByBlockNumberAndIndex(self, at_block, index): block = get_block_at_number(self._chain, at_block) uncle = block.uncles[index] return header_to_dict(uncle)
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)
def getUncleByBlockHashAndIndex(self, block_hash, index): block = self._chain.get_block_by_hash(block_hash) uncle = block.uncles[index] return header_to_dict(uncle)
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)
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)