Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
12 views

Different of configuration on computer's BPs?

I have a question about configuration of computer's block producer(BP). My question is: In 21 BPs, if have some BPs which have lower configuration of computer than other, they will never be approved ...
2
votes
2answers
66 views

Can I use MongoDB for storing data locally instead of storing in RAM?

I found that storing data in EOS RAM is sometimes expensive in turn makes it impractical. Can I use MongoDB for storing such data locally instead of storing in RAM?
0
votes
0answers
12 views

Where can one view what's stored in your EOS RAM storage layer? [duplicate]

How can I see what is stored in my EOS RAM? And can I delete / format the ram?
1
vote
1answer
26 views

Why don't need ram_payer for erase method in mulit_index class?

mulit_index class has three methods (emplace, modify, erase) to update a table. emplace and modify methods need to select ram_payer. But erase method doesn't need to select it. I think these methods ...
2
votes
1answer
35 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 ...
4
votes
4answers
111 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!
1
vote
1answer
49 views

high RAM usage nodeos && mongod

I run a non-producing node with 8GB RAM on Ubuntu 18.04 and 4 CPU cores, no Docker(yet). Overnight mongod crashed, not sure why. I just had to start mongod from the /opt folder again and it worked. ...
1
vote
1answer
19 views

As of 2018 October, what has EOS ram prices been?

It's 2018 october, what has the ram prices been like? Is there a chart to show the historic prices?
1
vote
1answer
21 views

How does one see how much ram I have used? And how can I recover the used ram?

From my understanding ram is like drive space in eos. And I'm assuming when we make transactions, that ledger data is stored in ram? Is there a way to delete what we used in ram to empty it out so we ...
1
vote
0answers
30 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 ...
2
votes
1answer
47 views

Why does it cost money to create an account?

Sites like https://namevault.co/ are charging to create an account. How can I do this myself without paying anyone? I have some EOS on an exchange already.
2
votes
1answer
133 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 ...
0
votes
0answers
31 views

How blockproducers validate transaction?

How blockproducers authenticate or validate transaction ? Which algorithm used to do that ?(other than dpos) i know that there is synchronization for transaction(for blockproducer's side) but what ...
1
vote
1answer
39 views

Can we store documents in a table.If yes, Is this a right approach?

I want to store some documents in my smart contract that some users upload. Can I use table for storage? But second thing is table resides in RAM and this doesn't seems good to store data in Ram. Is ...
1
vote
0answers
24 views

keep non fungible token in blockchain log

The dapp we are working on will have billions of NFT tokens. Our nft token is something that is added to blockchain only when user buys it. Before that it 'sits' in off-chain db. For the sake of ...
2
votes
1answer
54 views

Ram used in transactions?

Can anyone specifically tell me where we are using the ram suppose I am a dapp developer and I have staked some ram for accounts I am going to create Questions are For every transaction made by ...
1
vote
1answer
49 views

Can I create private eos blockchain without using RAM trading?

I would like to have a private network of servers that produce blocks and do not need to restrict resources.
2
votes
2answers
33 views

What does the “used RAM” number mean?

After I type Cleos get account "Account name" I get the response: permissions: owner 1: 1 EOS8Z5Yu8cRmWKcW85QjWRtgcSJuGRapuKbp3Vkdm69ZcUYA5yYMk active 1: 1 ...
2
votes
2answers
127 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 ...
3
votes
1answer
50 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 ...
3
votes
1answer
115 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
72 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 ...
0
votes
1answer
205 views

What is the ChainBase database used for?

EOSIO appears to make use of the Chainbase database for various functions in the codebase. What is this used for and how does it relate to the RAM concept in EOSIO? Is it simply the database used to ...
3
votes
1answer
212 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?
9
votes
2answers
234 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 ...
2
votes
1answer
74 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 ...
4
votes
1answer
379 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 ...
8
votes
2answers
195 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
218 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 ...
3
votes
1answer
167 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
212 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
1answer
100 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 ...
2
votes
1answer
40 views

When you delete a records, where does the information go?

Since you get the ram back , and the records are deleted, then what happens to the information that was recorded on the blockchain? Does it get erased forever? If it does, then it doesn't seem to ...
2
votes
1answer
142 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....
1
vote
2answers
602 views

How to increase billable CPU time?

I tried the execute a transaction to update public keys for my account. But I got the following error: billed CPU time (857 us) is greater than the maximum billable CPU time for the transaction (165 ...
2
votes
2answers
113 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
118 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 ...
5
votes
2answers
922 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 ...
1
vote
1answer
94 views

How to get current RAM price inside a contract in C++?

How can I programatically get the current(last) RAM price inside an EOS smart contract in C++? I need to handle the data inside the smart contract for an experiment.
3
votes
1answer
111 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 ...
3
votes
1answer
137 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 ?
1
vote
1answer
151 views

Can I build EOSIO with less than 7GB of RAM? | Answer: Yes

System Requirements (all platforms) 7GB RAM free required 20GB Disk free required I was going to ask this question because I didn't see it on here, but I actually wound up figuring it out myself, so ...
2
votes
1answer
145 views

Where we can get inline action info for buy ram contract?

when we invoke buyram contract to buy some rates, it will call inline action for transfer ram fee. I can see the buyram action on block, I don't see inline action on that. my question is that where I ...
3
votes
1answer
145 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....
2
votes
1answer
84 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 ...
1
vote
1answer
153 views

Where does the initial connector balance for the Bancor RAM Algorithm Come From

Update 7-12-18: Dan's changes | A Three Step Plan for Lowering EOS Account Creation Costs: Code updates | https://github.com/EOSIO/eosio.contracts/pull/9 Added setramrate to eosio.system/abi/eosio....
2
votes
1answer
66 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(...
4
votes
1answer
73 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 ...
2
votes
1answer
53 views

Can the memory used by an account be fully claimed and reused?

I know that we will need to buy around 4k of ram for each new account. When the account gets created it uses around 3k to store keys and other internal information. I know that this account can't ...
3
votes
1answer
215 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 ...