Packages

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LndRpcClient
  2. StartStopAsync
  3. StartStop
  4. LndRouterClient
  5. LndUtils
  6. NativeProcessFactory
  7. Logging
  8. AnyRef
  9. 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. def attemptToPayRoutes(invoice: LnInvoice, routes: Vector[Route]): Future[Option[HTLCAttempt]]
    Definition Classes
    LndRouterClient
  14. implicit def byteStringToByteVec(byteString: ByteString): ByteVector
    Definition Classes
    LndUtils
  15. implicit def byteStringVecToByteVecs(byteStrings: Vector[ByteString]): Vector[ByteVector]
    Definition Classes
    LndUtils
  16. implicit def byteVecToByteString(byteVector: ByteVector): ByteString
    Definition Classes
    LndUtils
  17. def cancelInvoice(hash: Sha256Digest): Future[Unit]
  18. def cancelInvoice(invoice: LnInvoice): Future[Unit]
  19. lazy val chainClient: ChainNotifierClient
  20. def channelBalance(): Future[ChannelBalances]
  21. implicit def channelPointToOutpoint(channelPoint: ChannelPoint): TransactionOutPoint
    Definition Classes
    LndUtils
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  23. def closeChannel(request: CloseChannelRequest): Future[DoubleSha256DigestBE]
  24. def closeChannel(outPoint: TransactionOutPoint): Future[DoubleSha256DigestBE]
  25. def closeChannel(outPoint: TransactionOutPoint, force: Boolean, feeRate: SatoshisPerVirtualByte): Future[DoubleSha256DigestBE]
  26. 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
  27. def computeInputScript(request: SignReq): Future[Vector[(ScriptSignature, ScriptWitness)]]
  28. def computeInputScript(tx: Transaction, signDescriptors: Vector[SignDescriptor]): Future[Vector[(ScriptSignature, ScriptWitness)]]
  29. def computeInputScript(tx: Transaction, inputIdx: Int, output: TransactionOutput): Future[(ScriptSignature, ScriptWitness)]
  30. def computeInputScript(tx: Transaction, inputIdx: Int, output: TransactionOutput, signMethod: SignMethod): Future[(ScriptSignature, ScriptWitness)]
  31. def computeInputScript(tx: Transaction, inputIdx: Int, hashType: HashType, output: TransactionOutput, signMethod: SignMethod, prevOuts: Vector[TransactionOutput]): Future[(ScriptSignature, ScriptWitness)]
  32. def connectPeer(request: ConnectPeerRequest): Future[Unit]
  33. def connectPeer(nodeId: NodeId, addr: InetSocketAddress, permanent: Boolean): Future[Unit]
  34. def connectPeer(nodeId: NodeId, addr: InetSocketAddress): Future[Unit]
  35. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  40. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. implicit val executionContext: ExecutionContext
    Definition Classes
    LndRpcClient → NativeProcessFactory
  44. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  45. def finalizePSBT(request: FinalizePsbtRequest): Future[PSBT]
  46. def finalizePSBT(psbt: PSBT): Future[PSBT]
  47. def findChannel(chanId: ShortChannelId): Future[Option[Channel]]
  48. def findChannel(channelPoint: TransactionOutPoint): Future[Option[Channel]]
  49. def fundPSBT(request: FundPsbtRequest): Future[PSBT]
  50. def fundPSBT(psbt: PSBT, feeRate: SatoshisPerVirtualByte): Future[PSBT]
  51. def fundPSBT(psbt: PSBT, feeRate: SatoshisPerVirtualByte, spendUnconfirmed: Boolean): Future[PSBT]
  52. def fundPSBT(psbt: PSBT, feeRate: SatoshisPerVirtualByte, account: String, spendUnconfirmed: Boolean): Future[PSBT]
  53. def fundPSBT(inputs: Vector[TransactionOutPoint], outputs: Map[BitcoinAddress, CurrencyUnit], feeRate: SatoshisPerVirtualByte, account: String, spendUnconfirmed: Boolean): Future[PSBT]
  54. def fundPSBT(inputs: Vector[TransactionOutPoint], outputs: Map[BitcoinAddress, CurrencyUnit], feeRate: SatoshisPerVirtualByte, spendUnconfirmed: Boolean): Future[PSBT]
  55. def genSeed(): Future[GenSeedResponse]
  56. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  57. def getInfo: Future[GetInfoResponse]
  58. def getNewAddress(addressType: AddressType): Future[BitcoinAddress]
  59. def getNewAddress: Future[BitcoinAddress]
  60. def getTransaction(txId: DoubleSha256DigestBE): Future[Option[TxDetails]]
  61. def getTransactions(request: GetTransactionsRequest): Future[Vector[TxDetails]]
  62. def getTransactions(startHeight: Int, endHeight: Int): Future[Vector[TxDetails]]
  63. def getTransactions(startHeight: Int): Future[Vector[TxDetails]]
  64. def getTransactions(): Future[Vector[TxDetails]]
  65. def getVersion(): Future[Version]
  66. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  67. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def initWallet(password: String): Future[ByteString]
  71. val instance: LndInstance
  72. lazy val invoices: InvoicesClient
  73. def isAlive(): Boolean
    Definition Classes
    NativeProcessFactory
  74. def isConnected(nodeId: NodeId): Future[Boolean]
  75. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  76. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  77. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  78. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  79. 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

  80. def isStopped: Future[Boolean]

    Checks to see if the client stopped successfully

  81. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  82. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  83. def leaseOutput(request: LeaseOutputRequest): Future[UInt64]

    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

  84. def leaseOutput(outpoint: TransactionOutPoint, leaseSeconds: Long): Future[UInt64]
  85. def listChannels(request: ListChannelsRequest = ListChannelsRequest()): Future[Vector[Channel]]
  86. def listLeases(request: ListLeasesRequest): Future[Vector[UTXOLease]]
  87. def listLeases(): Future[Vector[UTXOLease]]
  88. def listPeers(): Future[Vector[Peer]]
  89. def listPendingChannels(): Future[PendingChannelsResponse]
  90. def listUnspent(request: ListUnspentRequest): Future[Vector[UTXOResult]]
  91. def listUnspent: Future[Vector[UTXOResult]]
  92. lazy val lnd: LightningClient
  93. implicit def lndOutputDetailToOutputDetails(detail: OutputDetail): OutputDetails
    Definition Classes
    LndUtils
  94. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  95. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  96. def lookupInvoice(req: LookupInvoiceMsg): Future[Invoice]
  97. def lookupInvoice(rHash: PaymentHashTag): Future[Invoice]
  98. def monitorInvoice(rHash: PaymentHashTag, interval: FiniteDuration = 1.second, maxAttempts: Int = 60): Future[Invoice]
  99. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  100. def nodeId: Future[NodeId]
  101. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  102. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  103. def openChannel(request: OpenChannelRequest): Future[Option[TransactionOutPoint]]
  104. def openChannel(nodeId: NodeId, fundingAmount: CurrencyUnit, pushAmt: CurrencyUnit, satPerVByte: SatoshisPerVirtualByte, privateChannel: Boolean): Future[Option[TransactionOutPoint]]
  105. def openChannel(nodeId: NodeId, fundingAmount: CurrencyUnit, satPerVByte: SatoshisPerVirtualByte, privateChannel: Boolean): Future[Option[TransactionOutPoint]]
  106. implicit def outPointToChannelPoint(outPoint: TransactionOutPoint): ChannelPoint
    Definition Classes
    LndUtils
  107. implicit def outpointToTxOutPoint(op: OutPoint): TransactionOutPoint
    Definition Classes
    LndUtils
  108. implicit def outpointVecToTxOutPointVec(ops: Vector[OutPoint]): Vector[TransactionOutPoint]
    Definition Classes
    LndUtils
  109. implicit def outputToTxOut(output: TransactionOutput): TxOut
    Definition Classes
    LndUtils
  110. implicit def outputVecToTxOuts(outputs: Vector[TransactionOutput]): Vector[TxOut]
    Definition Classes
    LndUtils
  111. lazy val peersClient: PeersClient
  112. def probe(amount: Satoshis, node: NodeId, routeHints: Vector[LnRoute]): Future[Vector[Route]]
    Definition Classes
    LndRouterClient
  113. def probe(invoice: LnInvoice): Future[Vector[Route]]
    Definition Classes
    LndRouterClient
  114. def probeAndPay(invoice: LnInvoice): Future[Option[HTLCAttempt]]
    Definition Classes
    LndRouterClient
  115. def publishTransaction(tx: Transaction): Future[Option[String]]

    Broadcasts the given transaction

    Broadcasts the given transaction

    returns

    None if no error, otherwise the error string

  116. def queryRoutes(request: QueryRoutesRequest): Future[QueryRoutesResponse]
    Definition Classes
    LndRouterClient
  117. def queryRoutes(amount: CurrencyUnit, node: NodeId, routeHints: Vector[LnRoute]): Future[QueryRoutesResponse]
    Definition Classes
    LndRouterClient
  118. def registerConfirmationsNotification(request: ConfRequest): Source[ConfEvent, NotUsed]
  119. def releaseOutput(request: ReleaseOutputRequest): Future[Unit]
  120. def releaseOutput(outpoint: TransactionOutPoint): Future[Unit]
  121. lazy val router: RouterClient
  122. def sendCustomMessage(request: SendCustomMessageRequest): Future[Unit]
  123. def sendCustomMessage(peer: NodeId, tpe: BigSizeUInt, data: ByteVector): Future[Unit]
  124. def sendCustomMessage(peer: NodeId, tlv: TLV): Future[Unit]
  125. def sendCustomMessage(peer: NodeId, lnMessage: LnMessage[TLV]): Future[Unit]
  126. def sendOutputs(request: SendOutputsRequest): Future[Transaction]
  127. def sendOutputs(outputs: Vector[TransactionOutput], feeRate: SatoshisPerKW, spendUnconfirmed: Boolean): Future[Transaction]
  128. def sendOutputs(outputs: Vector[TransactionOutput], feeRate: SatoshisPerVirtualByte, spendUnconfirmed: Boolean): Future[Transaction]
  129. def sendPayment(request: SendPaymentRequest): Future[Payment]
  130. def sendPayment(nodeId: NodeId, amount: CurrencyUnit, timeout: FiniteDuration): Future[Payment]
  131. def sendPayment(invoice: LnInvoice, feeLimit: Satoshis, timeout: FiniteDuration): Future[Payment]
  132. def sendPayment(invoice: LnInvoice, timeout: FiniteDuration): Future[Payment]
  133. def sendToRoute(paymentHash: Sha256Digest, route: Route, secretOpt: Option[PaymentSecret]): Future[HTLCAttempt]
    Definition Classes
    LndRouterClient
  134. def sendToRoute(invoice: LnInvoice, route: Route): Future[HTLCAttempt]
    Definition Classes
    LndRouterClient
  135. def sendToRoute(request: SendToRouteRequest): Future[HTLCAttempt]
    Definition Classes
    LndRouterClient
  136. def sendToRoute(hash: Sha256Digest, route: Route): Future[HTLCAttempt]
    Definition Classes
    LndRouterClient
  137. def signPSBT(request: SignPsbtRequest): Future[PSBT]
  138. def signPSBT(psbt: PSBT): Future[PSBT]
  139. lazy val signer: SignerClient
  140. def start(): Future[LndRpcClient]

    Starts lnd on the local system.

    Starts lnd on the local system.

    Definition Classes
    LndRpcClient → StartStop
  141. def startBinary(): Future[Unit]
    Definition Classes
    NativeProcessFactory
  142. lazy val stateClient: StateClient
  143. 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
  144. def stopBinary(): Future[Unit]
    Definition Classes
    NativeProcessFactory
  145. def subscribeChannelBackups(): Source[ChanBackupSnapshot, NotUsed]
  146. def subscribeChannelEvents(): Source[ChannelEventUpdate, NotUsed]
  147. def subscribeChannelGraph(): Source[GraphTopologyUpdate, NotUsed]
  148. def subscribeCustomMessages(): Source[(NodeId, TLV), NotUsed]
  149. def subscribeInvoices(): Source[Invoice, NotUsed]
  150. def subscribePeerEvents(): Source[PeerEvent, NotUsed]
  151. def subscribeTransactions(): Source[TxDetails, NotUsed]
  152. def subscribeTxConfirmation(txId: DoubleSha256Digest, script: ScriptPubKey, requiredConfs: Int, heightHint: Int): Future[ConfDetails]
  153. def subscribeTxConfirmation(script: ScriptPubKey, requiredConfs: Int, heightHint: Int): Future[ConfDetails]
  154. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  155. implicit val system: ActorSystem
  156. def toString(): String
    Definition Classes
    AnyRef → Any
  157. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  158. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  159. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  160. implicit def txOutToTxOutput(txOut: TxOut): TransactionOutput
    Definition Classes
    LndUtils
  161. implicit def txOutpointToOutpoint(outpoint: TransactionOutPoint): OutPoint
    Definition Classes
    LndUtils
  162. implicit def txOutpointToOutpointVec(ops: Vector[TransactionOutPoint]): Vector[OutPoint]
    Definition Classes
    LndUtils
  163. implicit val uint32Mapper: TypeMapper[Int, UInt32]
    Definition Classes
    LndUtils
  164. implicit val uint64Mapper: TypeMapper[Long, UInt64]
    Definition Classes
    LndUtils
  165. def unlockWallet(password: String): Future[Unit]
  166. lazy val unlocker: WalletUnlockerClient
  167. lazy val versionerClient: VersionerClient
  168. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  169. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  170. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  171. lazy val wallet: WalletKitClient
  172. def walletBalance(): Future[WalletBalances]
  173. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  174. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  175. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from StartStop[Future[LndRpcClient]]

Inherited from LndRouterClient

Inherited from LndUtils

Inherited from NativeProcessFactory

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped