Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define APIs needed for Bitcoin Bonuses feature #700

Open
otech47 opened this issue Nov 2, 2022 · 2 comments
Open

Define APIs needed for Bitcoin Bonuses feature #700

otech47 opened this issue Nov 2, 2022 · 2 comments
Milestone

Comments

@otech47
Copy link
Member

otech47 commented Nov 2, 2022

Notes

  • We can show the balance available after Build Contributor.wallet API #717 is implemented
  • To be able to spend directly from the wallet, we would need Advanced wallet configuration that allows for direct spending

Build disburseBtcPayments Mutation

type ContributorWalletPayment {
  walletId: ID!
  amountToPay: Int!
}

mutation {
  disburseBtcPayments(
    projectId: ID
    walletsToPay: [ContributorWalletPayment]!
  ): [Payment]
}

Open Questions:

  • For wallets that have an on-chain address, can we use a single Bitcoin transaction with multiple outputs?
  • If we use SuperAdmin BTCPS: Does BTCPayServer support sending to multiple BTC addresses in 1 transaction via API?
  • If we use Advanced wallet config for a ProjectAdmin, we use LND APIs
@otech47 otech47 added this to the LL Demo milestone Nov 9, 2022
@otech47
Copy link
Member Author

otech47 commented Nov 30, 2022

type ContributorWalletPayment {
  walletId: ID!
  amountToPay: Int!
}

mutation {
  disburseBtcPayments(
    projectId: ID
    walletsToPay: [ContributorWalletPayment]!
  ): [Payment]
}

@otech47
Copy link
Member Author

otech47 commented Nov 30, 2022

Different disbursement scenarios

  1. All recipients have a LN invoice-friendly wallet configuration
  2. All recipients have a BTC address wallet configuration
  3. Some recipients LN invoice but not all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant