Developer Resources
...
API Resources
LND Node API
REST API Examples
5min
- Admin Macaroon - The admin macaroon is an authentication token that allows you to interact with your LND node's gRPC API with administrative permissions. You can also grab a "Read Only" macaroon that wont have permissions to spend. You can find your Macaroons in your Voltage Dashboard by visiting Manage Access -> Macaroon Bakery
Here are some code snippets demonstrating how to interact with some of the most common and popular LND API methods:
SendPaymentSync - https://lightning.engineering/api-docs/api/lnd/lightning/send-payment-sync
- POST /v1/channels/transactions: Pays an invoice by providing the payment request and the amount to pay.
- POST /v1/invoices: Creates a new invoice with a specified amount and optional memo.
- GET /v1/getinfo: Retrieves general information about your node.
Make sure to replace the placeholders in the script with your actual macaroon file path, node URL, and the desired invoice details.