ProtectedauthsOptionalbunkerA secret used when connecting to a remote bunker (the secret in a bunker:// URI)
A secret used when initiating a connection from the client side (the secret in a nostrconnect:// URI)
Whether the signer is connected to the remote signer
Whether the signer is listening for events
ProtectedlogOptionalmetadataClient metadata sent with connect requests
Optionalnip04Optionalnip44A method for handling "auth" requests
Protected OptionalpubkeyThe users pubkey
ProtectedpublishA method that is called when an event needs to be published
Relays to communicate over
OptionalremoteThe remote signer pubkey
Protected OptionalreqThe currently active REQ subscription
ProtectedrequestsThe local client signer
ProtectedsubscriptionThe active nostr subscription
ProtectedswitchingThe in-flight automatic switch_relays request
Milliseconds to wait for a response before rejecting a request (0 to disable)
ProtectedtimersTimeout timers for pending requests
StaticpoolA fallback pool to use if none is pass in when creating the signer
StaticpublishA fallback method to use for publishMethod if none is pass in when creating the signer
StaticsubscriptionA fallback method to use for subscriptionMethod if none is pass in when creating the signer
Client pubkey
Close the connection
Connect to a remote signer
OptionalbunkerSecret: string
The secret from a bunker:// URI used to authorize this client with the remote signer
Optionalpermissions: string[]
The signing permissions to request (see NostrConnectSigner.buildSigningPermissions)
ProtectedcreateReturns the nbunksec encoded session for this signer
Returns the nostrconnect:// URI for this signer
Get the users pubkey
Notify the remote signer that the session is ending and close the connection
The logout request is a courtesy hint, so the local connection is always closed even if the
remote signer does not acknowledge it. The consumer is responsible for deleting any persisted
client keypair.
Optionaloptions: NostrConnectLogoutOptionsOpen the connection
Send a ping request to the remote signer
Ensure the signer is listening for responses from the remote signer
Request to sign an event
ProtectedstartSends a switch_relays request in the background if autoSwitchRelays is enabled
ProtectedstartStarts or restarts the timeout for a pending request
ProtectedsubscribeStarts the REQ subscription on the current relays
Request relay list from the remote signer
An array of relay URLs if the signer wants to switch relays, or null if no change
Wait for a remote signer to connect
Optionalabort: AbortSignalStaticbuildBuilds an array of signing permissions for event kinds
StaticcreateStaticfromCreate a NostrConnectSigner from a bunker:// URI
Optionaloptions: Omit<NostrConnectSignerOptions, "relays"> & {StaticfromCreate a NostrConnectSigner from an nbunksec encoded session
Optionaloptions: Omit<NostrConnectSignerOptions, "signer" | "bunkerSecret" | "relays" | "remote"> & {Optionalpermissions?: string[]StaticparseStaticparse
Whether to send a
switch_relaysrequest after connecting