Packages

class LndRpcClient extends NativeProcessFactory with LndUtils with StartStopAsync[LndRpcClient] with Logging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LndRpcClient
  2. StartStopAsync
  3. StartStop
  4. LndUtils
  5. NativeProcessFactory
  6. Logging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LndRpcClient(instance: LndInstance, binaryOpt: Option[File] = None)(implicit system: ActorSystem)

    binaryOpt

    Path to lnd executable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit def LndTransactionToTxDetails(details: Transaction): TxDetails
    Definition Classes
    LndUtils
  5. def abandonChannel(request: AbandonChannelRequest): Future[Unit]
  6. def abandonChannel(outPoint: TransactionOutPoint, pendingFundingShimOnly: Boolean): Future[Unit]
  7. def addInvoice(invoice: Invoice): Future[AddInvoiceResult]
  8. def addInvoice(descriptionHash: Sha256Digest, value: MilliSatoshis, expiry: Long): Future[AddInvoiceResult]
  9. def addInvoice(memo: String, value: MilliSatoshis, expiry: Long): Future[AddInvoiceResult]
  10. def addInvoice(descriptionHash: Sha256Digest, value: Satoshis, expiry: Long): Future[AddInvoiceResult]
  11. def addInvoice(memo: String, value: Satoshis, expiry: Long): Future[AddInvoiceResult]
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. implicit def byteStringToByteVec(byteString: ByteString): ByteVector
    Definition Classes
    LndUtils
  14. implicit def byteStringVecToByteVecs(byteStrings: Vector[ByteString]): Vector[ByteVector]
    Definition Classes
    LndUtils
  15. implicit def byteVecToByteString(byteVector: ByteVector): ByteString
    Definition Classes
    LndUtils
  16. def channelBalance(): Future[ChannelBalances]
  17. implicit def channelPointToOutpoint(channelPoint: ChannelPoint): TransactionOutPoint
    Definition Classes
    LndUtils
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  19. def closeChannel(request: CloseChannelRequest): Future[TransactionOutPoint]
  20. def closeChannel(outPoint: TransactionOutPoint): Future[TransactionOutPoint]
  21. def closeChannel(outPoint: TransactionOutPoint, force: Boolean, feeRate: SatoshisPerVirtualByte): Future[TransactionOutPoint]
  22. def cmd: String

    The command to start the daemon on the underlying OS

    The command to start the daemon on the underlying OS

    Definition Classes
    LndRpcClient → NativeProcessFactory
  23. def computeInputScript(request: SignReq): Future[Vector[(ScriptSignature, ScriptWitness)]]
  24. def computeInputScript(tx: Transaction, signDescriptors: Vector[SignDescriptor]): Future[Vector[(ScriptSignature, ScriptWitness)]]
  25. def computeInputScript(tx: Transaction, inputIdx: Int, output: TransactionOutput): Future[(ScriptSignature, ScriptWitness)]
  26. def connectPeer(request: ConnectPeerRequest): Future[Unit]
  27. def connectPeer(nodeId: NodeId, addr: InetSocketAddress, permanent: Boolean): Future[Unit]
  28. def connectPeer(nodeId: NodeId, addr: InetSocketAddress): Future[Unit]
  29. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  34. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. implicit val executionContext: ExecutionContext
    Definition Classes
    LndRpcClient → NativeProcessFactory
  38. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  39. def finalizePSBT(request: FinalizePsbtRequest): Future[PSBT]
  40. def finalizePSBT(psbt: PSBT): Future[PSBT]
  41. def findChannel(chanId: Long): Future[Option[Channel]]
  42. def findChannel(channelPoint: TransactionOutPoint): Future[Option[Channel]]
  43. def genSeed(): Future[GenSeedResponse]
  44. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  45. def getInfo: Future[GetInfoResponse]
  46. def getNewAddress: Future[BitcoinAddress]
  47. def getTransaction(txId: DoubleSha256DigestBE): Future[Option[TxDetails]]
  48. def getTransactions(request: GetTransactionsRequest): Future[Vector[TxDetails]]
  49. def getTransactions(startHeight: Int, endHeight: Int): Future[Vector[TxDetails]]
  50. def getTransactions(startHeight: Int): Future[Vector[TxDetails]]
  51. def getTransactions: Future[Vector[TxDetails]]
  52. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  55. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  56. def initWallet(password: String): Future[ByteString]
  57. val instance: LndInstance
  58. def isAlive(): Boolean
    Definition Classes
    NativeProcessFactory
  59. def isConnected(nodeId: NodeId): Future[Boolean]
  60. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  61. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  62. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  63. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  64. def isStarted: Future[Boolean]

    Boolean check to verify the state of the client

    Boolean check to verify the state of the client

    returns

    Future Boolean representing if client has started

  65. def isStopped: Future[Boolean]

    Checks to see if the client stopped successfully

  66. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  67. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  68. def leaseOutput(request: LeaseOutputRequest): Future[Long]

    LeaseOutput locks an output to the given ID, preventing it from being available for any future coin selection attempts.

    LeaseOutput locks an output to the given ID, preventing it from being available for any future coin selection attempts. The absolute time of the lock's expiration is returned. The expiration of the lock can be extended by successive invocations of this RPC.

    request

    LeaseOutputRequest

    returns

    Unix timestamp for when the lease expires

  69. def leaseOutput(outpoint: TransactionOutPoint, leaseSeconds: Long): Future[Long]
  70. def listChannels(request: ListChannelsRequest = ListChannelsRequest()): Future[Vector[Channel]]
  71. def listLeases(request: ListLeasesRequest): Future[Vector[UTXOLease]]
  72. def listLeases(): Future[Vector[UTXOLease]]
  73. def listPeers(): Future[Vector[Peer]]
  74. def listUnspent(request: ListUnspentRequest): Future[Vector[UTXOResult]]
  75. def listUnspent: Future[Vector[UTXOResult]]
  76. lazy val lnd: LightningClient
  77. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  78. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  79. def lookupInvoice(rHash: PaymentHashTag): Future[Invoice]
  80. def monitorInvoice(rHash: PaymentHashTag, interval: FiniteDuration = 1.second, maxAttempts: Int = 60): Future[Invoice]
  81. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  82. def nodeId: Future[NodeId]
  83. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  84. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  85. def openChannel(request: OpenChannelRequest): Future[Option[TransactionOutPoint]]
  86. def openChannel(nodeId: NodeId, fundingAmount: CurrencyUnit, pushAmt: CurrencyUnit, satPerVByte: SatoshisPerVirtualByte, privateChannel: Boolean): Future[Option[TransactionOutPoint]]
  87. def openChannel(nodeId: NodeId, fundingAmount: CurrencyUnit, satPerVByte: SatoshisPerVirtualByte, privateChannel: Boolean): Future[Option[TransactionOutPoint]]
  88. implicit def outPointToChannelPoint(outPoint: TransactionOutPoint): ChannelPoint
    Definition Classes
    LndUtils
  89. implicit def outputToTxOut(output: TransactionOutput): TxOut
    Definition Classes
    LndUtils
  90. implicit def outputVecToTxOuts(outputs: Vector[TransactionOutput]): Vector[TxOut]
    Definition Classes
    LndUtils
  91. def publishTransaction(tx: Transaction): Future[Option[String]]

    Broadcasts the given transaction

    Broadcasts the given transaction

    returns

    None if no error, otherwise the error string

  92. def releaseOutput(request: ReleaseOutputRequest): Future[Unit]
  93. def releaseOutput(outpoint: TransactionOutPoint): Future[Unit]
  94. def sendCustomMessage(request: SendCustomMessageRequest): Future[Unit]
  95. def sendCustomMessage(peer: NodeId, tpe: BigSizeUInt, data: ByteVector): Future[Unit]
  96. def sendCustomMessage(peer: NodeId, tlv: TLV): Future[Unit]
  97. def sendCustomMessage(peer: NodeId, lnMessage: LnMessage[TLV]): Future[Unit]
  98. def sendOutputs(request: SendOutputsRequest): Future[Transaction]
  99. def sendOutputs(outputs: Vector[TransactionOutput], feeRate: SatoshisPerKW, spendUnconfirmed: Boolean): Future[Transaction]
  100. def sendOutputs(outputs: Vector[TransactionOutput], feeRate: SatoshisPerVirtualByte, spendUnconfirmed: Boolean): Future[Transaction]
  101. def sendPayment(request: SendRequest): Future[SendResponse]
  102. def sendPayment(nodeId: NodeId, amount: CurrencyUnit): Future[SendResponse]
  103. def sendPayment(invoice: LnInvoice): Future[SendResponse]
  104. lazy val signer: SignerClient
  105. def start(): Future[LndRpcClient]

    Starts lnd on the local system.

    Starts lnd on the local system.

    Definition Classes
    LndRpcClient → StartStop
  106. def startBinary(): Future[Unit]
    Definition Classes
    NativeProcessFactory
  107. def stop(): Future[LndRpcClient]

    Returns a Future LndRpcClient if able to shut down Lnd instance, inherits from the StartStop trait

    Returns a Future LndRpcClient if able to shut down Lnd instance, inherits from the StartStop trait

    returns

    A future LndRpcClient that is stopped

    Definition Classes
    LndRpcClient → StartStop
  108. def stopBinary(): Future[Unit]
    Definition Classes
    NativeProcessFactory
  109. def subscribeChannelBackups(): Source[ChanBackupSnapshot, NotUsed]
  110. def subscribeChannelEvents(): Source[ChannelEventUpdate, NotUsed]
  111. def subscribeChannelGraph(): Source[GraphTopologyUpdate, NotUsed]
  112. def subscribeCustomMessages(): Source[(NodeId, TLV), NotUsed]
  113. def subscribeInvoices(): Source[Invoice, NotUsed]
  114. def subscribePeerEvents(): Source[PeerEvent, NotUsed]
  115. def subscribeTransactions(): Source[TxDetails, NotUsed]
  116. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  117. def toString(): String
    Definition Classes
    AnyRef → Any
  118. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  119. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  120. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  121. implicit def txOutToTxOutput(txOut: TxOut): TransactionOutput
    Definition Classes
    LndUtils
  122. def unlockWallet(password: String): Future[Unit]
  123. lazy val unlocker: WalletUnlockerClient
  124. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  125. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  126. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  127. lazy val wallet: WalletKitClient
  128. def walletBalance(): Future[WalletBalances]
  129. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  130. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  131. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from StartStop[Future[LndRpcClient]]

Inherited from LndUtils

Inherited from NativeProcessFactory

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped