tfchain/TFChainClient.py
def transaction_put(self, transaction):
        """
        Submit a transaction to an available explorer Node.

        @param transaction: the transaction to push to the client transaction pool
        """
        if isinstance(transaction, TransactionBaseClass):
            transaction = transaction.json()
        endpoint = "/transactionpool/transactions"
        resp = self.explorer_post(endpoint=endpoint, data=transaction)
        resp = json_loads(resp)
        try:
            return str(Hash(value=resp['transactionid']))
        except KeyError as exc:
            # return a KeyError as an invalid Explorer Response
            raise tfchain.errors.ExplorerInvalidResponse(str(exc), endpoint, resp) from exc

        Submit a transaction to an available explorer Node.

        @param transaction: the transaction to push to the client transaction pool
        
Submit a transaction to an available explorer Node.
Submit a transaction to an available explorer Node .
def transaction_put(self, transaction):
        if isinstance(transaction, TransactionBaseClass):
            transaction = transaction.json()
        endpoint = "/transactionpool/transactions"
        resp = self.explorer_post(endpoint=endpoint, data=transaction)
        resp = json_loads(resp)
        try:
            return str(Hash(value=resp['transactionid']))
        except KeyError as exc:
            raise tfchain.errors.ExplorerInvalidResponse(str(exc), endpoint, resp) from exc
def transaction_put ( self , transaction ) : if isinstance ( transaction , TransactionBaseClass ) : transaction = transaction . json ( ) endpoint = "/transactionpool/transactions" resp = self . explorer_post ( endpoint = endpoint , data = transaction ) resp = json_loads ( resp ) try : return str ( Hash ( value = resp [ 'transactionid' ] ) ) except KeyError as exc : raise tfchain . errors . ExplorerInvalidResponse ( str ( exc ) , endpoint , resp ) from exc
Submit a transaction to an available explorer Node.
Submit a transaction to an available explorer Node .
"""
        Submit a transaction to an available explorer Node.

        @param transaction: the transaction to push to the client transaction pool
        """ # return a KeyError as an invalid Explorer Response
self
transaction
the transaction to push to the client transaction pool
the transaction to push to the client transaction pool