Companion

object Companion

Functions

create
Link copied to clipboard
common
fun create(chainHash: ByteVector32, amount: MilliSatoshi?, paymentHash: ByteVector32, privateKey: PrivateKey, description: String, minFinalCltvExpiryDelta: CltvExpiryDelta, features: Features, paymentSecret: ByteVector32 = randomBytes32(), paymentMetadata: ByteVector? = null, expirySeconds: Long? = null, extraHops: List<List<PaymentRequest.TaggedField.ExtraHop>> = listOf(), timestampSeconds: Long = currentTimestampSeconds()): PaymentRequest
decodeAmount
Link copied to clipboard
common
fun decodeAmount(input: String): MilliSatoshi?
encodeAmount
Link copied to clipboard
common
fun encodeAmount(amount: MilliSatoshi?): String
encodeTimestamp
Link copied to clipboard
common
fun encodeTimestamp(input: Long): List<Int5>
read
Link copied to clipboard
common
fun read(input: String): PaymentRequest
toBits
Link copied to clipboard
common
fun toBits(value: Int5): List<Boolean>
unit
Link copied to clipboard
common
fun unit(amount: MilliSatoshi): Char

Properties

DEFAULT_EXPIRY_SECONDS
Link copied to clipboard
common
const val DEFAULT_EXPIRY_SECONDS: Int = 3600
DEFAULT_MIN_FINAL_EXPIRY_DELTA
Link copied to clipboard
common
val DEFAULT_MIN_FINAL_EXPIRY_DELTA: CltvExpiryDelta