Optional
autoOptional
autoAutomatically fetch user's mutelist
Optional
blacklistRelays we should never connect to
Optional
cacheCache adapter to use for caching events
Optional
clientClient name to add to events' tag
Optional
clientClient nip89 to add to events' tag
Optional
debugDebug instance to use
Optional
devWhen this is set, we always write only to this relays.
Optional
enableEnable outbox model (defaults to false)
Optional
explicitRelays we should explicitly connect to
Optional
initialThe signature verification validation ratio for new relays.
Optional
lowestThe lowest validation ratio any single relay can have. Relays will have a sample of events verified based on this ratio. When using this, you MUST listen for event:invalid-sig events to handle invalid signatures and disconnect from evil relays.
Optional
mutedMuted pubkeys and eventIds
Optional
netProvide a caller function to receive all networking traffic from relays
Optional
outboxOutbox relay URLs.
Optional
relayDefault relay-auth policy
Optional
signatureWhether to verify signatures on events synchronously or asynchronously.
Optional
signerSigner to use for signing events by default
Optional
validationA function that is invoked to calculate the validation ratio for a relay.
Auto-connect to main user's relays. The "main" user is determined by the presence of a signer. Upon connection to the explicit relays, the user's relays will be fetched and connected to if this is set to true.