Properties
Private
Optional
#content
#content?: string
Private
Optional
#createdAt
#createdAt?: number
Private
Optional
#jitter
#jitter?: number
Private
Optional
#kind
Private
Optional
#pow
#pow?: number
Private
Optional
#powMiner
Private
Optional
#pubkey
#pubkey?: string
Private
#tags
#tags: string[][] = []
Methods
Private
#addHashtag
- #addHashtag(match): void
Returns void
Private
#mine
- #mine(ev): Promise<NostrEvent>
Private
#replaceMention
- #replaceMention(match): string
Returns string
Private
#validate
- #validate(): void
Returns void
build
- build(): NostrEvent
buildAndSign
- buildAndSign(pk): Promise<NostrEvent>
content
- content(c): EventBuilder
createdAt
- createdAt(n): EventBuilder
jitter
- jitter(n): EventBuilder
kind
- kind(k): EventBuilder
pow
- pow(target, miner?): EventBuilder
processContent
- processContent(): EventBuilder
pubKey
- pubKey(k): EventBuilder
tag
- tag(t): EventBuilder
Build and sign event