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

"Sink" batch transfer #3

Open
afeezaziz opened this issue Nov 27, 2023 · 2 comments
Open

"Sink" batch transfer #3

afeezaziz opened this issue Nov 27, 2023 · 2 comments

Comments

@afeezaziz
Copy link

afeezaziz commented Nov 27, 2023

Faucet is sending RGB20 or RGB21 assets in batches.

How do I enable to receive in batches, instead of one UTXO per receive of asset. Thank you in advance for making this repo public.

I see that in https://github.com/RGB-Tools/faucet-rgb/blob/master/faucet_rgb/database.py#L21 you are using the "transfer out" as "Request". Perhaps a "DonationReceived" for the information to receive RGB asset.

Or I can use the top up RGB asset https://github.com/RGB-Tools/faucet-rgb/blob/master/faucet_rgb/reserve.py#L20 and then check the invoices have been paid or not?

@nicbus
Copy link
Collaborator

nicbus commented Nov 28, 2023

Faucet is sending RGB20 or RGB21 assets in batches.

Hi, yes the faucet supports sending RGB20 or RGB25 assets in batches.

How do I enable to receive in batches, instead of one UTXO per receive of asset. Thank you in advance for making this repo public.

To receive multiple asset transfers from the faucet to a single wallet you would need to place several requests to the faucet from the same wallet (in the appropriate time frame), so that the faucet would send the all the related transfers in one batch. The faucet is designed to fulfill one request per wallet, so this is not a "supported" use case, but you can modify the faucet in order to accept multiple requests from the same wallet, then what you propose should be possible.

I see that in https://github.com/RGB-Tools/faucet-rgb/blob/master/faucet_rgb/database.py#L21 you are using the "transfer out" as "Request". Perhaps a "DonationReceived" for the information to receive RGB asset.

Not sure what the question is here. The Request database table is so named as it stores the requests that the faucet received from clients.

Or I can use the top up RGB asset https://github.com/RGB-Tools/faucet-rgb/blob/master/faucet_rgb/reserve.py#L20 and then check the invoices have been paid or not?

The /top_up_rgb API is there to enable a faucet administrator to send more RGB assets to the faucet in order to top up its reserves.

You can use the /transfers API to check the status of the faucet's transfers.

@afeezaziz
Copy link
Author

Ok, thank you @nicbus , I will update back with screenshots of sending assets in one batch and receiving assets withint one batch.

Thank you for sharing this repo in public.

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

2 participants