@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
14 lines (12 loc) • 344 B
text/typescript
import type { RestFetcher } from '../../rest.js'
export const createMarkAllAsRead = (request: RestFetcher) => {
/**
* @see https://docs.lnmarkets.com/api/operations/notificationsmarkallnotificationsasread
*/
return async () =>
request({
method: 'DELETE',
path: '/notifications/all',
requireAuth: true,
})
}