Example #1
0
    def subscribe_transactions(self):
        """
        Creates a uni-directional stream from the server to the client in which any newly
        discovered transactions relevant to the wallet are sent over

        :return: iterable of Transactions with 8 attributes per response. See the notes on threading
        and iterables in README.md
        """
        request = ln.GetTransactionsRequest()
        return self.lightning_stub.SubscribeTransactions(request)
Example #2
0
    def get_transactions(self):
        """
        Describe all the known transactions relevant to the wallet

        :returns: TransactionDetails with 1 attribute: 'transactions', containing a list of all
        transactions
        """
        request = ln.GetTransactionsRequest()
        response = self.lightning_stub.GetTransactions(request)
        return response
Example #3
0
 def subscribe_transactions(self):
     request = ln.GetTransactionsRequest()
     return self.lightning_stub.SubscribeTransactions(request)
Example #4
0
 def get_transactions(self):
     request = ln.GetTransactionsRequest()
     response = self.lightning_stub.GetTransactions(request)
     return response