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

Build Wallet.disburseBtcPayments mutation #748

Open
otech47 opened this issue Nov 30, 2022 · 0 comments
Open

Build Wallet.disburseBtcPayments mutation #748

otech47 opened this issue Nov 30, 2022 · 0 comments

Comments

@otech47
Copy link
Member

otech47 commented Nov 30, 2022

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

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

Originally posted by @otech47 in #700 (comment)

For v1 of the BTC bonuses feature, we will only allow sending to BTC addresses on-chain

  • check to make sure all walletsToPay have at least a Simple BTC address config, fail otherwise
  • check to make sure the requester (ProjectAdmin) has an Advanced wallet configuration, fail otherwise
  • implement LND API: https://api.lightning.community/#v2-wallet-send adding each address + amount from walletsToPay
  • create records in the Payments table
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