15 votes

Require inline action be sent by contract, and not account

UPDATE: This is the code I used to experiment with all combinations of permissions I could come up with: https://github.com/andresberrios/permissions_test After a lot of experimentation, I finally ...
8 votes
Accepted

How to set up a private blockchain using EOS?

Whenever you set up a local testnet node or run nodeos on your home computer, you are creating a new EOS chain. What matters is how you choose to connect it to other nodes to decentralise the system. ...
7 votes
Accepted

Can we add the permission to access the table?

You can not forbid reading the data from a smart contracts table, because it is exposed by the RPC interface or CLI. What you can do to prevent understanding it by 3rd parties, is encrypt your data ...
  • 2,104
5 votes
Accepted

Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp #2

If you used sudo make install, then you should use the eosiocpp binaries generated for you. In the latest version, I believe they shoud be in /usr/local/eosio/bin/ (it should print this info when sudo ...
  • 5,524
5 votes
Accepted

Compile Rust to WebAssembly for EOS Smart Contract?

While executing the contracts in the VM, it doesn't really matter what was the source language: be it C++ or Rust. It only cares about the compiled WASM being accepted by the WASM interpreter. Yes, ...
  • 5,524
5 votes

How to set up a private blockchain using EOS?

Yes you can create a private blockchain take a look to this tutorial : https://developers.eos.io/eosio-nodeos/docs/bios-boot-sequence
4 votes

Meaning of N() function in multi_index

The primary key for a multi_index table can not be a string. In general it should be an int. The N() macro converts the contents within the brackets into a uint64_t.
4 votes
Accepted

How I can typecast the "0.0001 EOS" into eosio::asset

I find the way to solve this problem .I use the function of symbol.hpp which is located at eosiolib/symbol.hpp inside our eos . First of all I create a string and then assign some amount to the struct ...
4 votes
Accepted

In the eosio.token contract, why are the structs private?

The contract rightfully encapsulates the implementation details as private. Instead, it provides the following function as the public interface: static asset get_balance( name token_contract_account,...
  • 598
4 votes
Accepted

What is eosio.code permission?

The permission eosio.code, gives permission for the contract to use inline actions. You don't need to add anything specific to the source code in order for the permissions on the contract to be valid, ...
4 votes

Is there any IDE for eos smart contract?

Yes there is IDE for eosio you can try to this IDE https://www.eosstudio.io/
  • 957
3 votes

How do I find and edit Hello.cpp?

Open terminal and go to your home directory because it is the root directory of your all work directories . Go through this sequence 1.open terminal 2.# cd 3.#locate hello.cpp and you will find ...
3 votes
Accepted

What is the ChainBase database used for?

1.What is chainbase used for? we can find the answer in : about chainbase 2.when we add a new object (i.e., row) to the table by Multi-Index such as class addressbook: contract { struct ...
  • 163
3 votes

Require inline action be sent by contract, and not account

This seems to work for me: $ mkdir -p project/sender $ mkdir project/recipient $ touch project/sender/sender.cpp $ touch project/recipient/recipient.cpp sender.cpp #include<eosiolib/eosio.hpp>...
  • 5,524
3 votes

Sending transaction from a Windows application

I see 3 main options: Option 1 Bundle the cleos and keosd binaries with your application, so you can run them as children processes of your application and issue commands to them to manage the ...
3 votes

Error 3160009: No wast file found

The problem here was that the path provided was relative, and Rohan was working with a docker container. When passing the path to your contract's directory when using docker, it should be an absolute ...
  • 384
3 votes
Accepted

Not able to find account on jungle test net 2.0

Yes jungle testnet upgraded to 2.0 and before updating they have started account migration programme but it's ended now, and they have given manual migration form on this site https://jungletestnet.io/...
  • 957
3 votes

How do I fix the error "include errors detected. Please update your includePath"

I installed eosio.cdt with brew. Adding /usr/local/Cellar/eosio.cdt/1.6.3/opt/eosio.cdt/include/** to my includePath variable helped me For eosio.cdt 1.7.0, the path is: /usr/local/Cellar/eosio.cdt/1....
3 votes

(eosio v2.0.2) contract prints are not shown, even using nodeos with --contracts-console parameter

Contract console out in nodeos log is debug level, but default logging level of nodeos is changed from debug to info. If you want to print console out, put next logging.json in your config directory. ...
  • 2,270
2 votes

Retrieving from Log Storage vs. RAM

To clarify, any action data in a transaction will go into log storage, the smart contract determines if it will also put it in RAM or not. The decision to store information RAM is typically ...
2 votes
Accepted

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

After some digging and some help from EOS New York, I think I understand the process of making changes better, and I can answer my question: The setramrate update was proposed on 23rd July 2018 by ...
  • 5,524
2 votes

Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp #2

This is a known issue for eosiocpp in version 1.1.2/1.1.3 of the eosio/eos Github repo. Switching to version 1.1.0 solved the problem for me and a colleague. Here's a host of issues relating to the ...
2 votes

Is an account and a smart contract the same?

No, they're different concepts: accounts are on-chain identifiers and smart contracts are on-chain software. You need an account to deploy or interact with a smart contract, but you can have an ...
  • 5,524
2 votes

Most appropriate version of EOS to start

You should start with v1.2.3, as it contains important fixes for major bugs with dev tools, like this problem. Installed it fresh just today.
2 votes

What would happen when a block producer fails to produce its blocks when it's his turn?

There would just be blocks missing at those time points, and the next BP will build on top of what they know to be the block of highest height. Relevant section from the whitepaper: The EOS.IO ...
  • 5,524
2 votes

eosio multisig exec problem

In the proposal, there are several issues: The first bit of JSON where you specify the permissions has to be in alphanumeric order. i.e. partner1 has to come before partner2. The second section of ...
2 votes
Accepted

Error for below code of scatter!

As @Ami Heines suggested this can be achieve using async nature of js. So define your getScatter action like this and try to define network in a config.json file like I used async getScatter(...
2 votes

How to set up a private blockchain using EOS?

this tutorial written by EOS developer. https://medium.com/@kaloliya/step-by-step-guide-to-set-up-your-private-eos-network-eosio-6d80c30dd520
2 votes

How to set up a private blockchain using EOS?

EOSIO Private network tutorial by EOS Costa Rica: https://guide.eoscostarica.io/docs/tutorials/private-network-installation
2 votes

What "[[eosio::contract("somecontract")]]" means in eos code?

The double square bracket in c++ indicates attribute specifier. The eosio::contract in this case guides eosio-cpp compiler to locate the smart contract class and make use of it when generating abi ...
  • 210

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