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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

0
votes
1answer
24 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 ...
2
votes
1answer
41 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?
7
votes
1answer
38 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 ...
1
vote
1answer
35 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 ...
3
votes
1answer
48 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 ...
3
votes
0answers
34 views

How can i see where i am using my EOS RAM?

Actually i have around 5KB of EOS RAM used. I know that about 3KB are used in the account creation , but.... How can i see in what contracts and tables is the rest of the EOS RAM used for? Thanks in ...
6
votes
1answer
54 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
39 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?
3
votes
1answer
63 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?
3
votes
1answer
46 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 ...
0
votes
1answer
28 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
74 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
120 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
66 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
65 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 ...
4
votes
2answers
368 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
57 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.
2
votes
1answer
75 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 ...
1
vote
1answer
57 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
82 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 ...
1
vote
1answer
71 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
92 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....
1
vote
1answer
38 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
87 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
35 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(...
3
votes
1answer
62 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
39 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
137 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 ...
3
votes
1answer
61 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?
2
votes
1answer
139 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?
1
vote
1answer
100 views

How to understand RAM and log storage from the view of Smart Contract?

The knowledge on RAM and smart contract is obscure to me. In white paper, RAM is defined and I know now there're only 64GBs in total. However in developer manual https://developers.eos.io/ it never ...
6
votes
1answer
95 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 ...
2
votes
1answer
72 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 ...
1
vote
1answer
76 views

How much memory do I need to synchronize my nodeos with the mainnet and use it say for a year?

Maybe this is not a precise question, but could you provide a rough estimation of how much memory (both RAM and hard drive) do I need to maintain my local node in synch with the mainnet for a year? I ...
1
vote
1answer
76 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 ...
0
votes
1answer
406 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 ...
1
vote
1answer
80 views

Does the RAM burn out forever or is it reusable after some time?

I would like to purchase RAM to do some actions such as smart contract executions as well as token transfers. On Ethereum, you would have to pay for gas and the gas burns forever. Am I going to be ...
0
votes
1answer
125 views

How do I add more RAM on existing account?

-All of my EOS is staked for CPU and NET bandwidth, should I un-stake some of it first, and how ? -What command should I execute with a BP to buy, lets say, 600 EOS worth of RAM on an existing ...
1
vote
0answers
69 views

Eosflare.io shows the wrong Connector Balance for EOSIO.RAM account?

It currently shows 66730 EOS (http://eosflare.io/account/eosio.ram), but here in the first answer (How to get current (last) RAM price?) is said that it should be 1021789.6640 EOS (see quote.balance). ...
2
votes
1answer
208 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 ...
2
votes
1answer
301 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 ...
2
votes
1answer
91 views

How can I figure out what the total ram of the system currently is?

Is there a way to know what the total system ram currently is? Is it the balance in bytes? $ ./cleos -u http://localhost:8080/ get table eosio eosio rammarket { "rows": [{ "supply": "...
11
votes
2answers
1k 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 ...
2
votes
2answers
78 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 ...
0
votes
1answer
79 views

How RAM is managed between PBs

In EOS smart contract developers are able to utilize the database functionalities. According to official document they are RAM. So I wonder if this is distributed database which included in Blockchain ...
4
votes
2answers
166 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 ...
1
vote
1answer
92 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
116 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 ...
4
votes
0answers
75 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! ...
2
votes
1answer
220 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 to calculate the RAM size of a contract in EOSIO ? i mean , is there any tool from EOSIO? and this tool could help me to know how much EOS i need to prepare for every contract.