import Signup from "@signupcash/provider";
const signup = new Signup.cash({ addr: 'DEVELOPER BCH ADDRESS'});
// Determine what the user is willing to contribute before requesting it
const donationAmount = Number(satoshis)
const donationUnit = "SATS" //or "BCH"
// Request the contribution from the user using [sendAnyonCanPayCommitment](https://developer.bitcoin.org/glossary.html#term-SIGHASH_ANYONECANPAY)
const { payload } = await signup.sendAnyoneCanPayCommitment(
// Give the wallet info on the campaign outputs
// This must be consistent **across contributions** to be considered the "same campaign"
value: 10000, //usually far more than what a single contributor will pay
address: "bitcoincash:bc1..."
// Users contribution to the above recipients (usually far less than total)
// Additional data which the campaign would like to be signed by contributor