PaymentRequest

data class PaymentRequest(prefix: String, amount: MilliSatoshi?, timestampSeconds: Long, nodeId: PublicKey, tags: List<PaymentRequest.TaggedField>, signature: ByteVector)

Types

Companion
Link copied to clipboard
common
object Companion
TaggedField
Link copied to clipboard
common
sealed class TaggedField

Functions

isExpired
Link copied to clipboard
common
fun isExpired(currentTimestampSeconds: Long = currentTimestampSeconds()): Boolean
sign
Link copied to clipboard
common
fun sign(privateKey: PrivateKey): PaymentRequest

Sign a payment request.

write
Link copied to clipboard
common
fun write(): String

Properties

amount
Link copied to clipboard
common
val amount: MilliSatoshi?
description
Link copied to clipboard
common
val description: String?
descriptionHash
Link copied to clipboard
common
val descriptionHash: ByteVector32?
expirySeconds
Link copied to clipboard
common
val expirySeconds: Long?
fallbackAddress
Link copied to clipboard
common
val fallbackAddress: String?
features
Link copied to clipboard
common
val features: ByteVector
minFinalExpiryDelta
Link copied to clipboard
common
val minFinalExpiryDelta: CltvExpiryDelta?
nodeId
Link copied to clipboard
common
val nodeId: PublicKey
paymentHash
Link copied to clipboard
common
val paymentHash: ByteVector32
paymentMetadata
Link copied to clipboard
common
val paymentMetadata: ByteVector?
paymentSecret
Link copied to clipboard
common
val paymentSecret: ByteVector32
prefix
Link copied to clipboard
common
val prefix: String
routingInfo
Link copied to clipboard
common
signature
Link copied to clipboard
common
val signature: ByteVector
tags
Link copied to clipboard
common
val tags: List<PaymentRequest.TaggedField>
timestampSeconds
Link copied to clipboard
common
val timestampSeconds: Long