'Where do you get NEAR Protocol testnet tokens (faucet)?

Where can someone increase the number of tokens on their TestNet account on NEAR Protocol if they run out?



Solution 1:[1]

Correct answer from the comment:

Create another testnet account and transfer funds to your original account

Solution 2:[2]

While it's somewhat similar approach I think the better way would be to create developer account through near-cli and then delete it by specifying your original account id as the <beneficiaryId>

example (using near-cli):

> near dev-deploy

Starting deployment. Account id: dev-1649926001453-26756682200890, node: https://rpc.testnet.near.org, helper: https://helper.testnet.near.org, file: ./out/main.wasm

This should give you the new dev account with account id of dev-1649926001453-26756682200890 in my case (just ignore the latter errors). it will have 200 NEAR tokens on it's balance. now you can delete this account by specifying your original account id as beneficiary:

> near delete dev-1649926001453-26756682200890 satoshi.testnet

Deleting account. Account id: dev-1649926001453-26756682200890, node: https://rpc.testnet.near.org, helper: https://helper.testnet.near.org, beneficiary: satoshi.testnet

Now you should have +200 NEAR tokens on satoshi.testnet and the previous account should be deleted so no testnet cluster will be poluted through the process.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vlad Frolov
Solution 2 Rezga