@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
15 lines (13 loc) • 398 B
text/typescript
import type { RestFetcher } from '../../rest.js'
import type { Notification } from './types.js'
export const createGetAllNotifications = (request: RestFetcher) => {
/**
* @see https://docs.lnmarkets.com/api/operations/notificationsfetchnotifications
*/
return async () =>
request<Notification[]>({
method: 'GET',
path: '/notifications',
requireAuth: true,
})
}