* Send via CLNRest * Add cURL script to send payments using CLNRest * Serve CLNRest over HTTP in dev Upgrade to 24.11 fixed CORS issue * Update cln.md
14 lines
492 B
JavaScript
14 lines
492 B
JavaScript
import { sendPayment as clnSendPayment } from '@/lib/cln'
|
|
|
|
export const name = 'CLN_REST'
|
|
|
|
export const sendPayment = async (bolt11, config, { signal }) => {
|
|
return await clnSendPayment(bolt11, config, { signal })
|
|
}
|
|
|
|
export const testSendPayment = async ({ socket, rune, cert }, { signal }) => {
|
|
// We only can use the /pay endpoint with the rune so we can't
|
|
// really test the configuration without paying something
|
|
// until https://github.com/stackernews/stacker.news/issues/1287
|
|
}
|