Files
breez-sdk-docs/snippets/react-native/list_payments.ts
2023-10-24 22:38:52 +02:00

21 lines
549 B
TypeScript

import {
listPayments,
PaymentTypeFilter
} from "@breeztech/react-native-breez-sdk"
const exampleListPayments = async () => {
// ANCHOR: list-payments
const payments = listPayments({ filter: PaymentTypeFilter.ALL })
// ANCHOR_END: list-payments
}
const exampleListPaymentsFiltered = async () => {
// ANCHOR: list-payments-filtered
const payments = listPayments({
filter: PaymentTypeFilter.SENT,
fromTimestamp: 1696880000,
includeFailures: true
})
// ANCHOR_END: list-payments-filtered
}