You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can someone please help me identify this as an issue on my end or the library?
I was able to get wallet.send to work in the scenario where the amount, proofs, and sendAmounts all match (i.e. they're all 4).
But when the amount isn't equal to the value of the proof(s), I keep getting an error about the keepAmounts not matching. I've tried hard-coding keepAmounts as [] and various other combinations without any luck.
I assume that if I want to send a 1-sat token to 5 people with an 8-sat proof, sendAmounts should be [1,1,1,1,1] and keepAmounts would be either [3] or [1,2]. Not sure if I'm using this correctly.
The text was updated successfully, but these errors were encountered:
If you opt into sendAmounts you need to provide a set of keepAmounts and sendAmounts that match the input. I agree that this is not too ergonomic and we are currently working on a more intuitive and convenient flow.
The first argument to CashuWallet.send() should be the amount you want to send, not including change. Like:
Can someone please help me identify this as an issue on my end or the library?
I was able to get wallet.send to work in the scenario where the amount, proofs, and sendAmounts all match (i.e. they're all 4).
But when the amount isn't equal to the value of the proof(s), I keep getting an error about the keepAmounts not matching. I've tried hard-coding keepAmounts as [] and various other combinations without any luck.
I assume that if I want to send a 1-sat token to 5 people with an 8-sat proof, sendAmounts should be [1,1,1,1,1] and keepAmounts would be either [3] or [1,2]. Not sure if I'm using this correctly.
The text was updated successfully, but these errors were encountered: