All Questions

Filter by
Sorted by
Tagged with
30
votes
5answers
3k views

Where can I find complete (whole stack) EOS dApp development example projects? With smart-contracts, the necessary C++ coding and a browser interface? [closed]

I can't wait to find complete EOS.io dApp examples. Not only the WASM and Smart Contract, but the complete stack with f.e. the web interface. Please add any EOS dApp Example project as answers on ...
27
votes
3answers
468 views

Is there a standard for naming and formatting that EOS projects should follow / EOS C++ coding style?

Coming from other C++ projects like Unreal Engine I was surprised to see coding standards in the EOS codebase is all lowercase, not only for variables but even for class names. Is there any resource ...
24
votes
4answers
3k views

How can I generate random numbers inside a smart contract?

If I'm building a smart contract that requires random numbers (e.g. games of chance), how do I reliably generate randomness inside a smart contract?
19
votes
5answers
2k views

What programming languages will be supported by EOS?

I understand that EOS supports C++ at launch and can support any language that compiles into WebAssembly (WASM) Here is a list of languages that compile to or are compatible with WebAssembly. I am ...
16
votes
3answers
3k 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 ...
15
votes
3answers
546 views

Where is the offical EOS Developer Documentation?

Where is the official developer documentation provided by EOS?
15
votes
1answer
4k views

How to vote using cleos?

Currently there are some voting portals and tools like: EOS Portal and Scatter (use it only via https!) eosc eos-voter tokenika I think currently the only official and secure way to vote is to use ...
15
votes
2answers
1k views

Storing files on the EOS blockchain vs InterPlanetary File System

Everipedia wants to employ for their encyclopedia. They will be combining the EOS blockchain and the InterPlanetary File System, which is somewhat of a decentralized server, that will be used to house ...
15
votes
1answer
2k views

How to read tables from other smart contracts?

I tried to look for inside the EOS repository and contracts examples but I could not find anything like this. I want to know how can I read another contract table. So, as an example: my contract ...
14
votes
2answers
321 views

How is EOS WASM virtual machine hardened?

WASM, famous from web browsers, regularly sees breaking out of sandbox issues. For example, see WebAssembly notes here: https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-google-chrome-...
13
votes
4answers
274 views

What wallets are available for the EOS coin?

To be clear, I'm not talking about the EOS erc20 token, I'm talking about the coin post-launch. I haven't heard mention of any wallets, 3rd party or otherwise that will be ready on launch day. Are ...
13
votes
4answers
2k views

Can someone explain the transaction struct?

{ expiration: '2018-05-09T10:21:48', region: 0, ref_block_num: 1055, ref_block_prefix: 4035814219, max_net_usage_words: 0, max_kcpu_usage: 0, delay_sec: 0, What is expiration, ...
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 ...
13
votes
3answers
690 views

Are Tables/DBs stored in RAM and held by multiple block producers?

We do have the Persistence API to store data for a smart contract in the EOSIO database. I was wondering where this database is located. I understood that it is patterned after Boost Multi-Index. 1) ...
13
votes
1answer
284 views

How can I lease my EOS once the mainnet launches? [closed]

EOS has been described as the blockchain real-estate due to its ability to allow it's holders to lease their tokens to dApp developers once the mainnet launches in June 2018 but I've heard very little ...
13
votes
1answer
323 views

How will account name-squatting be prevented?

Due to the potential high-value of certain names, we believe that the EOSIO system should offer a dynamic pricing model for account names. Furthermore, the ability to namespace accounts such as *.com ...
12
votes
1answer
2k views

How can I create a deferred transaction?

Are there any examples online for where I can see some examples of deferred transactions being created?
12
votes
3answers
11k views

How will someone new to EOS create an EOS account today

Creating EOS account requires staking EOS for CPU/RAM/NET. How will someone who just heard about EOS on the street create a new account without having EOS on the mainnet? They may have EOS on the ...
12
votes
1answer
1k views

How to get an account on EOS mainnet?

I will start with the description, which I think is correct. I am not sure about all the steps, so please clarify/correct as much as possible :) If the chain wasn't started yet, and I have some EOS ...
11
votes
1answer
1k views

What is the purpose of `require_recipient`?

I saw the description of the function require_recipient and it says: Add the specified account to set of accounts to be notified I would like to understand what's the purpose of receive this ...
11
votes
3answers
3k views

How to sign raw transaction with eosjs?

Lets say I have a transaction like below: var tx = { transaction_id: '111ee28e5deca69e54dadf751eba8fae181f0ceafc601dcab92700f5200abef8', broadcast: false, transaction: { ...
11
votes
2answers
535 views

How to airdrop a new token to EOS holders?

If I'm developing a project on EOS that will require a new custom token I might want to do an airdrop of that token to existing EOS holders. Are there best practices on how to go about that? Roughly ...
11
votes
2answers
746 views

Is it possible to choose who pays for CPU time?

Let’s say a a contract calls inline or deferred another contract. Can it choose who pays for the CPU? And in th case of an action called from a user transaction, it is possible to choose who pays for ...
11
votes
1answer
584 views

What are naming rules for actions, tables and contracts?

Since strings internally are converted to uint64 for space efficiency on the eos.io blockchain what are the restrictions that need to be followed for: actions tables index identifiers (within ...
10
votes
3answers
2k views

How to do an inline transfer of a token?

When I perform a token transfer from the cleos command line, it works with no problems: $ cleos push action eosio.token transfer '["rider2","vehicle1","1000.0000 TOK","initial"]' -p rider2 executed ...
10
votes
2answers
292 views

Is there any incentives to run a full node without being one of the 21 block producer?

So EOS will select 21 block producer to make the DPOS work, but to become a block producer requires extremely high level hardware, which is not practical for average users. So is there any incentives ...
10
votes
2answers
693 views

How to register an account on the testnet/mainnet?

What command do I have to run to request to register my_acct_name on the test net? Will it be the same for the main net?
10
votes
2answers
2k views

How to do something when your contract is an action notification recipient (like when it receives funds)?

The EOSIO_ABI macro seems to only forward actions meant for our contract. How do you also listen to all other contract actions (like the very common transfer action for the account "eosio.token")? I ...
10
votes
2answers
765 views

How often/consistent are blocks on EOS?

How often are blocks produced on EOS? Are they consistent? In Bitcoin the blocks are only mined on average within 10 minutes, not guaranteed 10 minutes - does EOS differ?
10
votes
1answer
164 views

How to architect token economies for DACs / DAOs built on EOS?

From the keynotes and interviews of the Block.one team it is evident that they envision a world of Decentralized Autonomous Communities (DACs) and not just decentralized apps. Steemit is the primary ...
9
votes
4answers
651 views

EOS authentication

I was wondering how users will "sign in" to EOS. Users will need to share some private keys with the web app if the user wants the app to interact on its behalf with the EOS blockchain. I believe this ...
9
votes
4answers
568 views

Hardware wallet support?

Will there be any hardware wallet support for EOS tokens after launch date? Not the ERC-20 tokens, the main (and other) EOS chain tokens.
9
votes
2answers
1k views

How to validate if an Account exists?

I know that we have require_auth to check for permission, but I'm looking for something like is_valid_account to check if the account exists and is active in the chain. Do we have anything like that?...
9
votes
1answer
568 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
2answers
425 views

Which version of C++ can I use in smart contracts?

Which version of C++ can I use to implement smart contracts? For example: C++11, C++14 or C++17? Do we have any constant or doc where it is defined? Also, in my understanding the code is sandboxed, ...
9
votes
3answers
805 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
3answers
2k views

What are the minimum hardware specifications required to run an EOS blockchain?

What are the minimum hardware requirements to run an EOS blockchain in terms of CPU power, RAM, etc?
9
votes
2answers
288 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
551 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?
9
votes
1answer
2k views

Delete all multi_index records without iterator?

I am running a multi_index in my contract and want to include an abi action that will clear it. Is there a clever way to delete all records? At the moment I am using something like this: //@abi ...
9
votes
1answer
851 views

Block data structure

Can someone explain the transaction_mroot, action_mroot and block_mroot used in block_header? I understand what a merkel tree is. Is transaction data actually stored in block or just the transaction ...
9
votes
2answers
919 views

Is there a function to return the size of a multi_index table?

Is there a function to return the size of a multi_index table? If not is there a better way then looping through them? uint64_t count; for (auto itr = table.begin(); itr != table.end(); ++itr) { ...
9
votes
1answer
454 views

Compile Rust to WebAssembly for EOS Smart Contract?

So I'm familiar with the fact that the supported language for EOS smart contracts is C++. However, the EOS docs mention that even the C++ needs to compile down to WebAssembly. So my question is, ...
9
votes
2answers
414 views

Is there any method to remove a useless contract from the blockchain just like “selfdestruct” in ETH?

As I know, in ETH, when a contract would be useless, it could be destroyed by using the "selfdestruct" action. So, is there any same method to remove a useless contract from the eos blockchain?
9
votes
1answer
104 views

Issue a transaction on a foreign blockchain

What is the correct way to send a transaction to the bitcoin blockchain from an EOS smart contract. Can anyone provide a code example ?
9
votes
1answer
565 views

How can I get a list of all accounts, contracts, and tokens?

cleos doesn't have a subcommand for this.
8
votes
3answers
365 views

How can you earn from EOSIO having a spare computer?

Given a person got a spare computer or few with some RAM (e.g. 16GB), how can you make gains (e.g. tokens) from just running EOSIO decentralized operating system with some minimal effort? What is the ...
8
votes
2answers
444 views

Is it possible for Ethereum dApps to port to EOS?

If the makers of https://www.cryptokitties.co/ chose to port their dApp to EOS, can they? If yes, what are the point-by-point steps involved in the transition? What are the tools and tech required to ...
8
votes
1answer
308 views

Can I still trade existing EOS on Binance after Launch Day?

I'm using Binance exchange service to trade EOS against ETH and BTC. On eoscountdown.com we can read: EOS tokens will become frozen on the Ethereum blockchain on June 2, 2018 22:59:59 UTC. The ...
8
votes
2answers
747 views

What is the correct way of issuing your own token?

There is an esoio.token contract. This contract be used for issuing and storing many tokens starting with EOS. However, is it possible to issue tokens without using the eosio.token contract? What is ...

15 30 50 per page
1 2 3 4 5 44