NodeHop

data class NodeHop(nodeId: PublicKey, nextNodeId: PublicKey, cltvExpiryDelta: CltvExpiryDelta, fee: MilliSatoshi) : Hop

A directed hop between two trampoline nodes. These nodes need not be connected and we don't need to know a route between them. The start node will compute the route to the end node itself when it receives our payment.

Parameters

nodeId

id of the start node.

nextNodeId

id of the end node.

cltvExpiryDelta

cltv expiry delta.

fee

total fee for that hop.

Constructors

NodeHop
Link copied to clipboard
common
fun NodeHop(nodeId: PublicKey, nextNodeId: PublicKey, cltvExpiryDelta: CltvExpiryDelta, fee: MilliSatoshi)

Functions

fee
Link copied to clipboard
common
open override fun fee(amount: MilliSatoshi): MilliSatoshi

Properties

cltvExpiryDelta
Link copied to clipboard
common
open override val cltvExpiryDelta: CltvExpiryDelta
fee
Link copied to clipboard
common
val fee: MilliSatoshi
nextNodeId
Link copied to clipboard
common
open override val nextNodeId: PublicKey
nodeId
Link copied to clipboard
common
open override val nodeId: PublicKey