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

minor: introduced a new endpoint to generate Retrieve Earnings Payment #547

Closed
wants to merge 1 commit into from

Conversation

saif-software-developer
Copy link
Collaborator

A/C:

A new endpoint is created to handle processing the paymentAmount and paymentAddress so that the fee is paid and earnings are distributed

@AndrewWestberg
Copy link
Member

I think we should go a different direction with this. We should modify the existing POST v1/earnings/{walletAddress} call to include the wallet utxos (just enough utxos for 3 ada). Then we can also build the transaction in that call and add a cborHex item on the ClaimOrder response. All the information for building the transaction is in that ClaimOrder.

The frontend then needs to just make a single call to the backend to kick off their claiming process.

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

Successfully merging this pull request may close these issues.

2 participants