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

Replace current NEAR Helper service with near-faucet.io #377

Open
frol opened this issue Aug 2, 2024 · 3 comments
Open

Replace current NEAR Helper service with near-faucet.io #377

frol opened this issue Aug 2, 2024 · 3 comments
Labels
blocked enhancement New feature or request

Comments

@frol
Copy link
Collaborator

frol commented Aug 2, 2024

Let's standardize a Faucet Interface and switch to using near-faucet.io

@flmel Can near-faucet.io create accounts with preloaded NEAR similar to how we currently use NEAR Helper endpoint?

@flmel
Copy link
Member

flmel commented Aug 6, 2024

Hey @frol I'm not exactly familiar how the current helper works, but the faucet and its web application have proven stable so I don't see complications doing so. However, the reserve of testnet tokens will deplete so there would be allocation needed.

@frol
Copy link
Collaborator Author

frol commented Aug 7, 2024

@flmel we just make a POST call to the helper with the following JSON data:

let mut data = std::collections::HashMap::new();
data.insert("newAccountId", new_account_id.to_string());
data.insert("newAccountPublicKey", public_key.to_string());
let client = reqwest::blocking::Client::new();
let result = client.post(faucet_service_url.clone()).json(&data).send();

Here is the URL we currently use:

faucet_url: Some("https://helper.nearprotocol.com/account".parse().unwrap()),

It would be great to replace only the URL. Would it be possible to make sure that Faucet Service endpoint supports the parameters?

@akorchyn
Copy link
Collaborator

akorchyn commented Dec 25, 2024

The initiative is nice, but it's blocked right now. As discussed with @flmel, the faucet doesn't have enough capacity (in tokens) to support extended usage, so it's better to stay as is, as the current faucet mints tokens instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
Status: NEW❗
Development

No branches or pull requests

3 participants