Hot answers tagged

25 votes
Accepted

How to vote using cleos?

Warning, this is probably wayyy outdated, feel free to make change requests :) Credit Chris from Privex (@chr54 Telegram) >> Producer Name privexinceos How to Vote Via Command Line (cleos): Want ...
  • 3,405
8 votes
Accepted

How can I find out the API endpoint for a block producer

You can find the api endpoint for any BP by querying their bp.json file. The bp.json file has information about the BP publishing it, and among other things it has a key called api_endpoint which is ...
  • 885
8 votes
Accepted

scope in the get table command

Meaning of scope You can just make up a scope as you go along. As a general rule there are 3 ways to use the scope: Globally - all table entries are kept in one scope (usually with the name of the ...
6 votes
Accepted

How can you add or change the keys for the owner of an account?

To change the owner key, you can use this command: cleos set account permission account_name owner EOS_public_key_of_new_owner -p account_name@owner Multiple owners on an account is essentially a ...
  • 885
6 votes
Accepted

Get table rows HTTP API in JSON

The output was in binary format. If you need the output as json then add "json":true in the data as shown in the command below curl --request POST --url http://bp.cryptolions.io:8888/v1/chain/...
6 votes

What is the typical RAM size of smart contract?

For some examples, you can check the sizes of the wasm files in EOSIO contracts (sizes are approximate): $ ls -l eos/build/contracts/* | grep wasm | awk 'BEGIN {print "SIZE \t NAME"} {sum+= $5; n++; ...
  • 5,524
6 votes
Accepted

How to create a separate EOS permission for voting using cleos

There are basically two steps you need to do. First you create a new account permission and then you give it the authority to use voteproducer action on eosio contract. As a prerequisite for this ...
  • 113
6 votes

how to create private network same as mainnet?

There is an article in the documentation detailing how you can setup and run a network with multiple producers, voting, and resource consumption. Excerpt: In this tutorial, we will start a number ...
  • 5,524
6 votes

Multiple EOS transfers in a single transaction

In a smart contract, you could do this by emplacing multiple actions into a single transaction, as follows: transaction transfer; transfer.actions.emplace_back(eosio::permission_level {_self, N(active)...
5 votes

Error 3070003: Serialization Error Processing WASM

I solved it. The problem was that I was using .wast and you can no longer use .wast you have to use .wasm
  • 295
5 votes

Why the first time I execute an action I get "Error 3080006: transaction took too long"?

The execution time is based on many factors in each execution. It could be the cache missing or process management could blocks the nodeos process and makes the execution time exceeds the max-...
  • 174
4 votes
Accepted

transaction with actions across two contracts

In EOS, you can construct Transactions that contain multiple actions. When the transaction is submitted, all of the actions must succeed, or the entire transaction will fail. An example is available ...
  • 1,824
4 votes
Accepted

Error 3030002 when trying to set contract steps

The set contract operation takes the account name as its first parameter (eosin.token in your example). If this account doesn't exist, if cannot set the contract. In your example above, you create a ...
  • 1,824
4 votes
Accepted

Issue a transaction on a foreign blockchain

Transactions sent to a foreign chain will require some facilities on said foreign chain to be trustless. In the case of two EOSIO based chains, the foreign blockchain will run a smart contract (no ...
4 votes
Accepted

How to Clear/Reset Local Test Instance

To reset your chain data on a local testnet you should: Stop your node Delete the blocks and shared_mem folders which you can find under: Linux: ~/.local/share/eosio/nodeos/data Mac OS: ~/Library/...
4 votes

Account history from latest to oldest (position, offset) for pagination

I don't think this is possible using the current implementation. At the moment, it seems like pos == -1 is a special case where actions are displayed up to the most recent ones, while it usually ...
  • 5,524
4 votes
Accepted

How to update contract that has already been published to nodeos?

Certain small code changes get optimised out by the WASM compiler, resulting in an identical .wasm file, so nodeos may reject the update. Try making a more significant code update such as ...
  • 5,524
4 votes
Accepted

How to check version of EOS on local machine

Like @Lonkly said it is Version 1.2.1. As an alternative to his solution you could use an old docker image. Check it out here from Docker Hub. The advantage of this solution is that you do not have ...
  • 2,104
4 votes

How to check version of EOS on local machine

Both of previous answers are valid. Another alternative, a little bit more tricky, is this one: in you output you have, as first row "server_version": "bf28f8bb". This is the hash of the commit of ...
4 votes

Is it possible to see a list of deferred transactions

So I found a way to access deferred transactions using the following command: curl NODE_HERE/v1/chain/get_scheduled_transactions --data '{"json":"true","limit":-1}' after this, you would have to ...
4 votes
Accepted

Is there any way I can keep wallet unlocked and open all the time on the local node

I'm still seeing the option under keosd -h for help. keosd --version v1.5.0 --unlock-timeout arg (=900) Timeout for unlocked wallet in seconds (...
  • 3,405
4 votes
Accepted

How to transfer EOS Token with eosjs?

After searching the official doc and trying different approches I finally got it to work. I've used eos.transaction instead of eos.transfer and the following example is working for those interested: ...
  • 175
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
Accepted

how to list the schedule for active BPs?

This can be done in 2 steps: 1. Find the latest block This can be done using the get_info() end-point. Example: $ curl http://publicapi-mainnet.eosauthority.com/v1/chain/get_info and save ...
  • 5,524
3 votes

Get cleos without building EOS?

Instead of compiling EOS yourself you could download a prebuilt Docker container, here are some instructions for how to do that with EOS: https://www.eosdocs.io/dappdevelopment/software/docker/ I'd ...
  • 674
3 votes

Keosd connection error

You can provide both nodeos and keosd urls with cleos -u http://localhost:8888 --wallet-url http://localhost:8889 your commands -u sets nodeos url --wallet-url is for keosd To change default keosd ...
  • 151
3 votes

How can I vote for a Proxy on Cleos?

Confirm you're connecting to the main chain. This can be accomplished with the cleos command cleos -u http://mainnet.genereos.io:80 get info In the -u switch we are specifying which Block Producer ...
3 votes
Accepted

set contract error

This means that your WASM is compiled such that it expects the symbol free to be provided at run time by the environment. In our WebAssembly toolchain, any unresolvable symbol left over after linking ...
3 votes
Accepted

Creating a keypair through the RPC API

I would reconsider this approach because it is possible to expose your/the users private key if you rely on a thrid party to create the key. Even if the third party behaves correct, due to ...
  • 2,104
3 votes

Wallet location different between RPC API and cleos

The keosd wallet daemon has an option to set the wallet directory. --wallet-dir arg (=".") The path of the wallet files (absolute path or relative to application data dir) If you have the wallet ...
  • 1,824

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