Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error: Sender xxx.testnet does not have enough balance 9.99991607015 for operation costing 100.0000861846776875

I am currently doing a course on NEAR on a site called dacade.org
In the tutorial, after creating a top level account on the NEAR testnet, I create a sub account.

$ near create-account contract.xxx.testnet --masterAccount xxx.testnet

When I do this, it returns an error that my balance is insufficient.

An error occured
Error: Sender yukasaito.testnet does not have enough balance 9.99991607015 for operation costing 100.0000861846776875

The first amount given by testnet to the top level account is 10NEAR.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

On the other hand, I am told that I need 100.0000861846776875 NEAR to create the sub-account.

Is the only way to prepare the balance by creating multiple top level accounts?

I would like to know if there is any other better way.
Thank you.

>Solution :

There is the –initialBalance flag
The 100 come from half of what was previously given automatically to new testnet accounts, recently that changed to 10 (previously 200) the cli is not yet updated to reflect that change.

$ near create-account contract.xxx.testnet --masterAccount xxx.testnet --initialBalance 5

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading