Example #1
0
 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)
Example #2
0
 async def getTransactionByHash(
         self, transaction_hash: Hash32) -> RpcTransactionResponse:
     transaction = await self.chain.coro_get_canonical_transaction(
         transaction_hash)
     return transaction_to_dict(transaction)
Example #3
0
 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)
Example #4
0
 def getTransactionByBlockHashAndIndex(self, block_hash, index):
     block = self._chain.get_block_by_hash(block_hash)
     transaction = block.transactions[index]
     return transaction_to_dict(transaction)
Example #5
0
 def getTransactionByBlockNumberAndIndex(self, at_block, index):
     block = get_block_at_number(self._chain, at_block)
     transaction = block.transactions[index]
     return transaction_to_dict(transaction)
Example #6
0
 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)
Example #7
0
 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)
Example #8
0
 def getTransactionByBlockNumberAndIndex(self, at_block, index):
     block = get_block_at_number(self._chain, at_block)
     transaction = block.transactions[index]
     return transaction_to_dict(transaction)
Example #9
0
 def getTransactionByBlockHashAndIndex(self, block_hash, index):
     block = self._chain.get_block_by_hash(block_hash)
     transaction = block.transactions[index]
     return transaction_to_dict(transaction)
Example #10
0
File: eth.py Project: veox/trinity
 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)