Skip to content

The rest API that alby needs to access to link lnd

webfans edited this page Dec 18, 2022 · 2 revisions

The lnd rest api that the alby needs to access for normal operation are as follows

{
  GET: [
    '/v1/getinfo',
    '/v1/channels',
    '/v1/invoices',
    '/v1/balance/channels',
    '/v1/balance/blockchain',
    '/v1/transactions/fee',
    '/v1/graph/edge/$chan_id}',
    '/v1/graph/info',
    '/v1/graph/node/${pub_key}',
    '/v1/transactions',
    '/v1/payments',
    '/v1/peers',
    '/v1/invoice/${r_hash_str}',
    '/v1/graph/routes/${pub_key}/${amt}',
    '/v1/payreq/${pay_req}'
  ],
  POST: [
    '/v1/channels',
    '/v1/peers',
    '/v1/verifymessage',
    '/v1/channels/transactions/route',
    "/v1/channels/transactions",
    "/v1/signmessage",
    "/v2/wallet/address/next"
  ],
  DELETE: [ '/v1/peers/${pub_key}' ]
}

Remove the parameter and only retain the url. Simplify it as follows

[
  '/v1/getinfo',
  '/v1/channels',
  '/v1/invoices',
  '/v1/balance/channels',
  '/v1/balance/blockchain',
  '/v1/channels',
  '/v1/peers',
  '/v1/transactions/fee',
  '/v1/graph/edge/',
  '/v1/graph/info',
  '/v1/graph/node/',
  '/v1/transactions',
  '/v1/payments',
  '/v1/peers',
  '/v1/invoice/',
  '/v1/graph/routes/',
  '/v1/verifymessage',
  '/v1/channels/transactions/route',
  '/v1/payreq/'
  '/v1/verifymessage',
  '/v1/channels/transactions/route',
  "/v1/channels/transactions",
  "/v1/signmessage",
  "/v2/wallet/address/next"
]
Clone this wiki locally