Hot answers tagged


Storing big files in a database on chain is far more expensive as its held in ram. B1 could implement a file storage system in EOS.IO but integrating IPFS is much easier. The only stuff you want or need on chain is metadata that will be managed by a contract. That is how it will be done with EOS.IO Storage


Blockchains are not meant for storing large chunks of data like files. In EOS, because you have to stake tokens to pay for the storage you are using, storing data in the blockchain itself would be economically infeasible. To address this, EOS is planning to incorporate an API that will allow Smart Contracts (and dApps?) to store data in on IPFS network run ...


You can store your data in IPFS off-chain. And set the returning IPFS multihash as the primary key of the multi-index table. // @abi table struct todo { uint64_t multihash; //the multihash of ipfs uint64_t primary_key() const { return multihash; } //set multihash as key };


Yes, if your contract needs to access hashes. In other word, if you store hashes in multi-index table rows, it needs RAM. From the view of IPFS, a hash represents a file. Whatever the content it has. Your math is correct. But the RAM price you gave is 0.0228/32*1000 = 0.7125 EOS/KB, pretty much on the recent spike. The RAM has gone crazy lately and thus ...


First start the ipfs deamon or do it programmatically using apis like ipfs-js. after installing ipfs on your machine run ipfs daemon Then via apis like ipfs-api in node.js you can add the data in smart contract via communicating to eosjs. //The daemon will be running on 5001 port const ipfsAPI = require('ipfs-api'); let ipfs = ipfsAPI('localhost', '5001'...


Why EOS is working with RAM in the first place? To be fast. To have 3000 tx/per second (current maximum). If you will have to write data to disk - it will take a lot of time (comparing to RAM). It will cost a lot of staked EOS for CPU or will just be forbidden by BPs. The only way i see it can be really implemented - is by running it some how outside of CPU ...


Usage of swap or virtual memory is already considered in the way that it has always worked on regular operating systems. To explain this it's important to understand the following: The amount of RAM that is available in the EOS blockchain is basically just a configuration parameter of the blockchain itself. It doesn't mean that the block producers ...


If you only need static hosting and you don't need a custom domain, then you can use GitHub Pages, which is free. This will serve your site over https, which you need if you're using recent browser features, e.g. the built-in cryptographic functions.

Only top voted, non community-wiki answers of a minimum length are eligible