1

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.

ysaito
  • 41
  • 5

1 Answers1

0

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

flmel
  • 26
  • 3
  • Excuse my additional question. Was there an announcement anywhere that the price was reduced from 200 NEAR to 10 NEAR? I could not find it on the website or on NEAR discode, maybe my search was not the right way to do it... – ysaito Jul 06 '22 at 17:15
  • No, it was silently made change but it makes sense since probably the majority of the mainnet wallet hold less than 200 near there are not whole lot of reasons why would you need so much on each testnet account – flmel Jul 06 '22 at 19:46