9

My contract requires 350KB of RAM on the blockchain but it seems that jungle testnet only provides around 200KB of RAM size.
Can the RAM on testnet be increased somehow?
The error I am getting while setting the contract is:

account <my-account-name> has insufficient ram; needs 339413 bytes has 207693 bytes
9

You can use the buyram action of system contract.
The above transaction can be performed using cleos as shown below.

cleos --url <jungle-testnet-url> system buyram <payer-account> <receiver-account> --kbytes 1000
0

The above answer is perfect.

Anyway, to buy RAM for myself, in my local node on the Jungle Testnet, I use the following code:

./cleos.sh system buyram <myaccountname> <myaccountname> --kbytes 200

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.