Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 10
0
Arquivo: eth.py Projeto: 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)