33 lines
582 B
JavaScript
33 lines
582 B
JavaScript
import { gql } from '@apollo/client'
|
|
|
|
export const INVOICE = gql`
|
|
query Invoice($id: ID!) {
|
|
invoice(id: $id) {
|
|
id
|
|
bolt11
|
|
msatsReceived
|
|
cancelled
|
|
confirmedAt
|
|
expiresAt
|
|
}
|
|
}`
|
|
|
|
export const WITHDRAWL = gql`
|
|
query Withdrawl($id: ID!) {
|
|
withdrawl(id: $id) {
|
|
id
|
|
bolt11
|
|
satsPaid
|
|
satsFeePaying
|
|
satsFeePaid
|
|
status
|
|
}
|
|
}`
|
|
|
|
export const CREATE_WITHDRAWL = gql`
|
|
mutation createWithdrawl($invoice: String!, $maxFee: Int!) {
|
|
createWithdrawl(invoice: $invoice, maxFee: $maxFee) {
|
|
id
|
|
}
|
|
}`
|