near

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.

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