Questions tagged [ram]

RAM, here, refers to the memory in which the EOSIO blockchain state is stored. Questions under this tag may relate to EOSIO RAM in different contexts: consumption, persistent storage, costs, internal market, accounting, performance, technical details, and others.

Filter by
Sorted by
Tagged with
16
votes
3answers
4k views

How does buying and selling RAM work on EOS?

Let’s suppose a dApp needs 8GB RAM to support its userbase and the developer has 1000 EOS tokens. Can the tokens be used as RAM by staking or would she have to buy RAM separately? Later if the ...
13
votes
2answers
3k views

How to get current (last) RAM price?

We want to be able to measure (with limited precision) how much EOS we will need to run our smartcontract. Let's say we know how much RAM we need, but do we calculate how much will it cost? We can ...
9
votes
1answer
584 views

Removing contract to release RAM - the smallest contract possible

Check our github https://github.com/irespo/irespo/tree/master/irespo/iresporemove I did a sample contract with one empty action, but it is still 30 KB. I tried a contract without action, but did not ...
9
votes
3answers
850 views

How to increase RAM on Jungle testnet?

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 ...
9
votes
2answers
291 views

Is there a math error in Bancor paper?

According to Dan Larimer here https://github.com/EOSIO/eos/issues/3032 "The Bancor Protocol math is wrong in their paper". However I am reviewing the details here https://goo.gl/HXQBUr and it seems ...
9
votes
2answers
592 views

How can I see where I'm using my EOS RAM?

I have around 5KB of EOS RAM used. I know that about 3KB are used in the account creation , but.... How can I see which contracts and tables the rest of the EOS RAM used for?
7
votes
2answers
320 views

Is there a flaw in deciding who can pay for RAM?

Lets say I interact with an action from a smart contract, if I'm not careful and didn't read or couldn't understand the source code for the smart contract, is it not possible that the contract could ...
6
votes
1answer
133 views

What's the purpose of RAMEOS relay?

EOS.IO formulas for converting EOS to RAM and viceversa imply that the quantity [RAM reserve]x[EOS reserve in connector] remains constant. It was very complicated to read this from the code! ...
6
votes
2answers
492 views

EOS Ram allocation

As the ram allocation model changed in Dawn 4.0, it looks like EOS token holders are not allocated any "free" ram, it has to be bought using EOS native tokens. Question is, who owns the ram initially?...
6
votes
1answer
237 views

Why the price of RAM will drop 1000 times?

As the chat shows, the price of RAM will be much lower if fractional reserve. But I don't understand how this happens? Any thoughts?
5
votes
1answer
523 views

How to calculate the RAM size of a contract in EOSIO and then i can know how much EOS i need to pay for every contract

How can I calculate the RAM size of a contract in EOSIO? I mean, is there any tool from EOSIO? Could this tool help me to know how much EOS I need to prepare for every contract.
5
votes
2answers
2k views

Clearing RAM tables of eosio.token contract

What I am trying to do is clear the RAM table completely. This question is not a duplicate since it is asking for a full and a working solution. The contract that I was executing filling the RAM ...
5
votes
1answer
823 views

How to calculate memory quota, net bandwidth and cpu bandwidth limit in an account?

Suppose account aaa will have a total of 10 EOS with 1 EOS staked for net bandwidth and 1 EOS staked for cpu bandwidth. And no other account will delegate resources to account aaa. How can we ...
5
votes
2answers
277 views

Staking dapp user EOS tokens

It's possible for a smart contract to stake EOS user account tokens? And then rent them or apply them as the smart contract owner wants, to be able to generate some revenue or to pay for RAM if user ...
4
votes
4answers
492 views

Why do token transfers on EOSIO consume RAM?

Very basic question but I just can't figure out why token transfers on EOS are stored in (expensive) RAM and not just simply in the blockchain? Please help me understand!
4
votes
1answer
516 views

I'm still wrapping my head around EOS RAM and CPU resources. How do they work exactly?

Coming from other blockchains, renting or buying ram / cpu on EOS is a weird concept to grasp for now. From my understanding, an EOS account can choose to buy ram or cpu? Can they not buy any at ...
4
votes
1answer
428 views

What is the typical RAM size of smart contract?

What is the typical amount of RAM needed to store a smart contract? Can you give some examples and their RAM sizes?
4
votes
2answers
997 views

How to solve “Account using more than allotted RAM usage”?

I am trying to unstake my EOS tokens using system undelegatebw. I got the error Error 3080001: Account using more than allotted RAM usage and account xxxxx has insufficient ram; needs 7973 bytes has ...
4
votes
1answer
138 views

How RAM was allocated in dapp and how to optimize the table?

We are doing dapp development on EOS. And it seems cost more ram than we evaluated. How much ram will be used when stored a table record? And how to optimize the table structure to save the ram? See ...
4
votes
1answer
68 views

When someone sells his RAM to another account, how it would clear from previous contracts?

I know unlike CPU and Net bandwidth, RAM doesn't refresh itself. we also know that we can exchange our RAM with EOS. But when someone sell his RAM to anoher user. So in this case what happen how ...
4
votes
1answer
445 views

How can I transfer RAM from one account to another?

I have account with some kilobytes of RAM and I need transfer a part of the RAM to another account. What should I do?
4
votes
1answer
148 views

Retrieving from Log Storage vs. RAM

I'm quite new to EOS. As far as I know, some of the output from smart contracts are also stored in the Log Storage. At the same time, I can also choose to store those outputs in RAM. My questions ...
4
votes
1answer
80 views

Why is ram usage different when creating same accounts?

I am trying to understand why ram usage is different for the same task. I executed cleos system newaccount --stake-net "0.0010 EOS" --stake-cpu "0.0010 EOS" --buy-ram-kbytes 3 It succeeded but ...
3
votes
1answer
812 views

What is the Bancor algorithm and how it is used for RAM trading?

In simple terms, what is the Bancor algorithm, and how does it work? In particular, how is it use to trade RAM?
3
votes
1answer
249 views

Who will get the ram back when delete records?

In EOS, when create a table record, someone will pay the ram, and when modify the record, maybe someone else will pay the ram, and when delete the record, who will get the ram back? the creator or the ...
3
votes
1answer
228 views

How can we know the usage of ram for eos?

Is there exist an table which we can know how much ram we consumed? Or is there exist an api can help for this ?
3
votes
1answer
121 views

Ethereum event logs equivalent for EOS

One of the solutions for saving quite a lot data in Ethereum Smart contracts is to log data by emitting event, which saves our gas. Is EOS quite similar? Does it provide us with the very same ...
3
votes
1answer
81 views

What are blockchain producers’ incentives to add additional RAM?

If payments for RAM go to the network as a whole, what is the incentive for block producers to increase their physical RAM?
3
votes
1answer
151 views

Do dApp developers have to pay for contract instances RAM as well?

I wonder if you also need to take contract instance RAM usage into account as a dApp developer on top of estimating the persistent storage RAM usage (since it will have to be temporarily stored in the ...
3
votes
1answer
190 views

Where is my RAM currently allocated to?

Is there a way I can check where my RAM is currently allocated to / being used for? And how can I re-use it for other things?
3
votes
1answer
413 views

Can I get the current RAM usage in contract?

I want to calculate the ram usage when I conduct an action in contract, if ram is over the limit, I will let the action fail automatically. How can I get the current ram usage in contract?
3
votes
1answer
251 views

If possible we can know the historic price for EOS ram from block?

is there exist a table so that we can know historic price from EOS mainnet? Or if we want to know the price of EOS Ram on specific time, which data we can get from EOS mainnet? I know https://eos....
3
votes
1answer
891 views

How can increase RAM or reset it?

EOSflare.io shows I am using all of the RAM (7.94 KB / 7.95 KB). Now all my transactions are failing. I assume its because of maxing out the RAM? If so, when does EOS.IO reset RAM usage or do I need ...
3
votes
1answer
272 views

How to Find Ram Market Bancor Connector Weight (CRR)

My question is how to discover the current CW for the bancor algorithm in the current RAM market. Below you can see where in the system contract RAM and the RAMCORE token is created for the market ...
2
votes
1answer
170 views

How can the payer for the modified table = 0?

statstable.modify( st, 0, [&]( auto& s ) { s.supply += quantity; }); Here is some code from the eosio.token contract. How can the payer be 0? what does it mean? Here are the params for ...
2
votes
1answer
81 views

How is the ram reallocated when a table is modified?

if i do : //usera creates a new row in the table table.emplace(usera, [&](auto &s) { s.name = “Alice”; }); and then do: //userb then modifies the same row that usera created table.modify(...
2
votes
2answers
102 views

What EOS Chain Information/Interaction do you wish was more publicly available?

I've decided to build a website that will display chain metrics as it relates to EOSIO. I am thinking of integrating with Scatter. My initial ideas are to show: Cost Per Byte of RAM currently and ...
2
votes
1answer
236 views

Do I get RAM back after deploying a contract?

Deploying a contract uses RAM. If I deploy a contract, am I going to get the RAM back? In not, is there any other way to get it back? EDIT, ANSWER, YES: Just re-deploy another contract instead, that ...
2
votes
1answer
76 views

What is the RAM price on Jungle testnet

I want to buy 250KB of RAM on Jungle testnet but don't know the price. in this thread the answer suggests the command cleos --url <jungle-testnet-url> system buyram <payer-account> <...
2
votes
2answers
402 views

How can I know if I pay ram for a row in a table?

I am creating a non-fungible token. While I own the token, I pay ram for it. After transfer of the token the new owner should pay for it. My token contract updates the payer as soon as the new owner ...
2
votes
1answer
101 views

What is the practical process by which BPs change the RAM available on the mainnet?

What is the process that BPs follow to update the RAM size at regular intervals? From what I can tell, the update is made in the eosio_global_state singleton to update the max_ram_size parameter in ...
2
votes
1answer
211 views

How should developers make money to cover cost of EOS CPU, bandwidth, and RAM?

So EOS puts the cost of transactions and storage onto the developers. ETH puts the cost onto users. Because these are decentralized apps, in theory, no one should be making a lot of money off of them....
2
votes
2answers
155 views

Can we move the RAM tables to an IPFS Storage (and back), and therefore solve the RAM costs problem? -AKA Swap

The storage should appear on EOS by the end of 2018. https://github.com/EOSIO/Documentation/blob/master/EOS.IO%20Storage.pdf Would it be possible to simply move the ram-tables to a storage, once we ...
2
votes
1answer
178 views

IPFS Hash Storage In RAM Cost/Hash Question

According to this, an IPFS hash can be represented with 32 bytes. Would these hashes need to be stored in RAM? If so, is it limited to 1 file stored per hash? Would it be ~$0.20/hash to store in ...
2
votes
1answer
734 views

How can I sell used RAM in EOS?

I'm conducting an airdrop to every eos holders(ie. about 163,000). I've done a requirement estimation and it has been found that around 20 mb ram is needed. 464.28 EOS is required to buy that much of ...
2
votes
1answer
115 views

Staking for Ram: burden on developers or users?

When I'm setting up an application, do I have the option of making use of the Ram the user have or would I have to stake ram for the user? What if some users have staked for ram and some have not?
2
votes
1answer
54 views

Why suddenly high RAM with SWAP usage nodeos

Why suddenly my nodeos memory(ram with swap) usage been 100%? and memory full usage then oop Am I setting chain-thread to 18? My Nodeos Ver: v1.8.0-rc2 Sync status completed full sync nodeos ...
2
votes
1answer
48 views

How to view how much RAM users are utilizing

RAM can either be used or unused as seen by cleos -u https://api.eosnewyork.io get account eosnewyorkio created: 2018-06-10T13:04:19.500 memory: quota: 92.66 KiB used: 28.04 KiB ...
2
votes
1answer
48 views

Can you upload binary files to RAM?

Let's say I wanted to create a music midi dapp player where I store all the .midi files in RAM or should I store it in the blockchain (log?). Example: http://www.midishrine.com/index.php?id=85 Let's ...
2
votes
1answer
164 views

How to buy more RAM without CPU?

Currently I am running low on CPU and would love to borrow some from Chintai but it says I have to little RAM to be able to complete the transaction (which is true, I am running very low). However, in ...