Lightning Addresses

Update a LN Address

Changed on

Updates an address. Returns the address details.

put/v1/lightning-addresses/{id}

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Request body

activeboolean nullable

Active status

allows_nostrboolean nullable

Nostr enabled

nostr_pubkeystring nullable

Nostr public key

usernamestring nullable

Username such as username@domain

Example request

{
  "nostr_pubkey": "npub1m8pwckdf3..."
}

Response

LN Address Updated

account_idstring uuid required

Owning account ID

activeboolean required

Active status. Inactive addresses cannot receive funds

allows_nostrboolean required

Nostr enabled

created_atstring date-time required

Date of creation in database

idstring uuid required

Internal ID

nostr_pubkeystring nullable

Nostr Public key

updated_atstring date-time nullable

Date of update in database

usernamestring required

Username

wallet_idstring uuid required

Wallet that receives invoices generated for this address

Example response

{
  "nostr_pubkey": "d9c2ec59a98c..."
}

Changes