UNPKG

@ln-markets/sdk

Version:

TypeScript SDK for LNMarkets API v2

15 lines (13 loc) 394 B
import type { RestFetcher } from '../../rest.js' import type { WithdrawalCondensed } from './types.js' export const createGetWithdrawals = (request: RestFetcher) => { /** * @see https://docs.lnmarkets.com/api/operations/usergetwithdrawals */ return async () => request<WithdrawalCondensed[]>({ method: 'GET', path: '/user/withdraw', requireAuth: true, }) }