mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
21 lines
549 B
TypeScript
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
|
|
}
|