async def getTransactionByBlockNumberAndIndex( self, at_block: Union[str, int], index: int) -> RpcTransactionResponse: block = await get_block_at_number(self.chain, at_block) transaction = block.transactions[index] return transaction_to_dict(transaction)
async def getTransactionByHash( self, transaction_hash: Hash32) -> RpcTransactionResponse: transaction = await self.chain.coro_get_canonical_transaction( transaction_hash) return transaction_to_dict(transaction)
async def getTransactionByBlockHashAndIndex( self, block_hash: Hash32, index: int) -> RpcTransactionResponse: block = await self.chain.coro_get_block_by_hash(block_hash) transaction = block.transactions[index] return transaction_to_dict(transaction)
def getTransactionByBlockHashAndIndex(self, block_hash, index): block = self._chain.get_block_by_hash(block_hash) transaction = block.transactions[index] return transaction_to_dict(transaction)
def getTransactionByBlockNumberAndIndex(self, at_block, index): block = get_block_at_number(self._chain, at_block) transaction = block.transactions[index] return transaction_to_dict(transaction)
def getTransactionByBlockNumberAndIndex(self, at_block: Union[str, int], index: int) -> Dict[str, str]: block = get_block_at_number(self._chain, at_block) transaction = block.transactions[index] return transaction_to_dict(transaction)
def getTransactionByBlockHashAndIndex(self, block_hash: Hash32, index: int) -> Dict[str, str]: block = self._chain.get_block_by_hash(block_hash) transaction = block.transactions[index] return transaction_to_dict(transaction)
async def getTransactionByHash(self, transaction_hash: Hash32) -> Dict[str, str]: transaction = await self.chain.coro_get_canonical_transaction( transaction_hash) return transaction_to_dict(transaction)