Skip to main content
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 ...
Andres Berrios's user avatar
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. ...
Phillip Hamnett - EOS42's user avatar
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 ...
tmm's user avatar
  • 2,114
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 ...
confused00's user avatar
  • 5,554
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, ...
confused00's user avatar
  • 5,554
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
Neetesh Gangwar's user avatar
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.
Phillip Hamnett - EOS42's user avatar
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 ...
Nirdesh Kumar's user avatar
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,...
Gassa's user avatar
  • 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, ...
Phillip Hamnett - EOS42's user avatar
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/
Mr.Y's user avatar
  • 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 ...
Nirdesh Kumar's user avatar
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 ...
fen chen's user avatar
  • 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>...
confused00's user avatar
  • 5,554
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 ...
Andres Berrios's user avatar
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 ...
Sandwich's user avatar
  • 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/...
Mr.Y's user avatar
  • 957
3 votes
Accepted

What is the meaning of "scope" in a Smart Contract?

EOSIO organizes data in the fashion described in the graphic below. The scope usually refers to the account in relation to which the data is stored. So eosio.token stores each account's token balance ...
Taner Seytgaziyev's user avatar
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....
Alexander Molina's user avatar
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. ...
conr2d's user avatar
  • 2,320
3 votes
Accepted

atomicassets mintasset in contract

The very kind and helpful includenull has answered my question on the wax discord but I'll post the answer here for anyone who had the same issues. action( permission_level(get_self(), "active&...
Jesseeeee's user avatar
3 votes
Accepted

How to extract data from atomic assets ATTRIBUTE_MAP

I forgot to post an answer to this question when I found it. Here's how: Assuming I wanted to take the "Rarity" value from an ATTRIBUTE_MAP, this is how I would get it. string rarity_value = ...
Jesseeeee's user avatar
3 votes

What is the latest version of eosio and what is the new github site?

EOSIO was taken over by the EOS Network Foundation and block.one, the company that initially developed the EOSIO framework stopped development and archived the repositories in github.com/eosio. EOSIO ...
cmadh's user avatar
  • 1,929
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 ...
John Williamson's user avatar
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 ...
confused00's user avatar
  • 5,554
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 ...
Tyler J Kuhn's user avatar
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 ...
confused00's user avatar
  • 5,554
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.
Vivienne Fosh's user avatar
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 ...
confused00's user avatar
  • 5,554
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 ...
Phillip Hamnett - EOS42's user avatar

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