UNPKG

@ln-markets/sdk

Version:
18 lines (16 loc) 395 B
import type { KyInstance } from 'ky' export const createDeposit = (instance: KyInstance) => { /** * @see https://docs.lnmarkets.com/api/operations/userdeposit */ return async (body: { amount: number }) => instance .post('user/deposit', { json: body, }) .json<{ depositId: string expiry: number paymentRequest: string }>() }