Constructors
constructor
- new Address(
kind: number,
pubkey: string,
identifier: string,
relays?: string[],
): Address Parameters
- kind: number
- pubkey: string
- identifier: string
- relays: string[] = []
Properties
Readonly
identifier
identifier: string
Readonly
kind
kind: number
Readonly
pubkey
pubkey: string
Readonly
relays
relays: string[] = []
Methods
toNaddr
- toNaddr(): `naddr1${string}`
Returns `naddr1${string}`
toString
- toString(): string
Returns string
Static
from
- from(address: string, relays?: string[]): Address
Parameters
- address: string
- relays: string[] = []
Static
fromEvent
- fromEvent(event: AddressableEvent, relays?: string[]): Address
Parameters
- event: AddressableEvent
- relays: string[] = []
Static
fromNaddr
- fromNaddr(naddr: string): Address
Static
isAddress
- isAddress(address: string): boolean
Returns boolean