TextNote

data class TextNote(val text: String, val tags: List<Tag> = emptyList()) : EventContent

A text note that can be published via relays. Event kind 1, as defined in nip-01.

Constructors

Link copied to clipboard
constructor(text: String, tags: List<Tag> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val kind: Int
Link copied to clipboard
open override val tags: List<Tag>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun sign(sec: SecKey): Event
Link copied to clipboard
open override fun toJsonString(): String