It currently cost 0.9298 EOS
to purchase 1024 bytes of RAM on the Jungle Testnet.
0.9298 * 250 = 232.45 EOS
estimated to purchase 250 kbytes of RAM.
The documentation you linked to is not current. Please refer to the v1.7.4 eosio repo.
buyram_subcommand(CLI::App* actionRoot) {
auto buyram = actionRoot->add_subcommand("buyram", localized("Buy RAM"));
buyram->add_option("payer", from_str, localized("The account paying for RAM"))->required();
buyram->add_option("receiver", receiver_str, localized("The account receiving bought RAM"))->required();
buyram->add_option("amount", amount, localized("The amount of tokens to pay for RAM, or number of bytes/kibibytes of RAM if --bytes/--kbytes is set"))->required();
buyram->add_flag("--kbytes,-k", kbytes, localized("buyram in number of kibibytes (KiB)"));
buyram->add_flag("--bytes,-b", bytes, localized("buyram in number of bytes"));
add_standard_transaction_options(buyram, "payer@active");
buyram->set_callback([this] {
EOSC_ASSERT( !kbytes || !bytes, "ERROR: --kbytes and --bytes cannot be set at the same time" );
if (kbytes || bytes) {
send_actions( { create_buyrambytes(from_str, receiver_str, fc::to_uint64(amount) * ((kbytes) ? 1024ull : 1ull)) } );
} else {
send_actions( { create_buyram(from_str, receiver_str, to_asset(amount)) } );
}
});
}
The amount
parameter can either be an amount in EOS to spend, or --bytes
or --kbytes
"The amount of tokens to pay for RAM, or number of bytes/kibibytes of RAM if --bytes/--kbytes is set"