lnAddress: Get paid sats to sell lightning addresses on your domains

Charge people for using your domain name...
More details
Created by, talvasconcelos

GET lnaddress/api/v1/domains
Body (application/json)
Returns 200 OK (application/json)
JSON list of users
Curl example
curl -X GET {{ request.base_url }}lnaddress/api/v1/domains -H "X-Api-Key: {{ user.wallets[0].inkey }}"
POST /lnAddress/api/v1/domains
Headers
{"X-Api-Key": <string>, "Content-type": "application/json"}
Body (application/json) - "wallet" is a YOUR wallet ID
{"wallet": <string>, "domain": <string>, "cf_token": <string>,"cf_zone_id": <string>,"webhook": <Optional string> ,"cost": <integer>}
Returns 201 CREATED (application/json)
{"id": <string>, "wallet": <string>, "domain": <string>, "webhook": <string>, "cf_token": <string>, "cf_zone_id": <string>, "cost": <integer>}
Curl example
curl -X POST {{ request.base_url }}lnaddress/api/v1/domains -d '{"wallet": "{{ user.wallets[0].id }}", "domain": <string>, "cf_token": <string>,"cf_zone_id": <string>,"webhook": <Optional string> ,"cost": <integer>}' -H "X-Api-Key: {{ user.wallets[0].inkey }}" -H "Content-type: application/json"
DELETE /lnaddress/api/v1/domains/<domain_id>
Headers
{"X-Api-Key": <string>}
Curl example
curl -X DELETE {{ request.base_url }}lnaddress/api/v1/domains/<domain_id> -H "X-Api-Key: {{ user.wallets[0].inkey }}"
GET lnaddress/api/v1/addresses
Body (application/json)
Returns 200 OK (application/json)
JSON list of addresses
Curl example
curl -X GET {{ request.base_url }}lnaddress/api/v1/addresses -H "X-Api-Key: {{ user.wallets[0].inkey }}"
GET lnaddress/api/v1/address/<domain>/<username>/<wallet_key>
Body (application/json)
Returns 200 OK (application/json)
JSON list of addresses
Curl example
curl -X GET {{ request.base_url }}lnaddress/api/v1/address/<domain>/<username>/<wallet_key> -H "X-Api-Key: {{ user.wallets[0].inkey }}"
POST /lnaddress/api/v1/address/<domain_id>
Headers
{"X-Api-Key": <string>}
Curl example
curl -X POST {{ request.base_url }}lnaddress/api/v1/address/<domain_id> -d '{"domain": <string>, "username": <string>,"email": <Optional string>, "wallet_endpoint": <string>, "wallet_key": <string>, "sats": <integer> "duration": <integer>,}' -H "X-Api-Key: {{ user.wallets[0].inkey }}" -H "Content-type: application/json"