An account for the amber clipboard api

Type Parameters

  • Metadata extends unknown

Hierarchy (view full)

Constructors

Properties

abort: null | AbortController = null
disableQueue?: boolean

Disable request queueing

id: string = ...
lock: null | Promise<any> = null
metadata$: BehaviorSubject<undefined | Metadata> = ...
nip04?: {
    decrypt: ((pubkey: string, ciphertext: string) => string | Promise<string>);
    encrypt: ((pubkey: string, plaintext: string) => string | Promise<string>);
}
nip44?: {
    decrypt: ((pubkey: string, ciphertext: string) => string | Promise<string>);
    encrypt: ((pubkey: string, plaintext: string) => string | Promise<string>);
}
pubkey: string
queueLength: number = 0

internal queue

type = "amber-clipboard"

Accessors

Methods