stacker.news/fragments/wallet.js

51 lines
864 B
JavaScript
Raw Normal View History

2021-10-26 20:49:37 +00:00
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
}
}`
2021-10-28 19:59:53 +00:00
2021-12-15 16:50:11 +00:00
export const WALLET_HISTORY = gql`
query WalletHistory($cursor: String) {
walletHistory(cursor: $cursor) {
facts {
id
type
createdAt
msats
msatsFee
status
type
description
}
cursor
}
}
`
2021-10-28 19:59:53 +00:00
export const CREATE_WITHDRAWL = gql`
mutation createWithdrawl($invoice: String!, $maxFee: Int!) {
createWithdrawl(invoice: $invoice, maxFee: $maxFee) {
id
}
}`