Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions about the CLI tool that interfaces with the REST API exposed by nodeos and with wallet services such as keosd. Cleos may be used to upload contracts, query blockchain data, push actions, create keys, manage permissions, vote, and others.

1
vote
2answers
20 views

How to check version of EOS on local machine

I know after running the nodeos and keosd . I run the cleos --url http://localhost:8888 get info and I get the following json in my terminal window { "server_version": "bf28f8bb", "chain_id": "...
1
vote
0answers
11 views

How to generate packed_trx for push transaction?

Where can I find documents about this? Or does it have some descriptions instead of c++/js code?
0
votes
0answers
16 views

wallet_api_plugin isn't supported in nodeos anymore?

I am following along the tutorial here but get the following error message when I execute cleos wallet create --to-console: Error 3110002: Missing Wallet API Plugin Ensure that you have eosio::...
3
votes
0answers
17 views

How to use nodeos command when deploying via Docker?

I am able to run cleos from my command line after following basic setup instructions to launch a private testnet, including setting an alias: alias cleos='docker exec -it eosio /opt/eosio/bin/cleos -...
0
votes
1answer
42 views

How does the EOS account system work together with smart contracts?

It's my first step into eos and Trying to get some ideas. I really do hope you can help me. Question 1) As we all know, we can transfer some coins from one to another account by using account_names. ...
4
votes
2answers
28 views

Can you create a deferred transaction with cleos?

I want to create a deferred transaction that can be executed using cleos, is this possible? If so, how?
1
vote
1answer
22 views

Error 3070003: Serialization Error Processing WASM

I was trying to deploy my smart contract to the local testnet and got this error. Error 3070003: Serialization Error Processing WASM I was using a command cleos set contract testing . hello.wast ...
0
votes
1answer
10 views

When accessing cleos in Docker, why are files and wallets deleted after exit?

On a mac. When accessing cleos in Docker, why are files and wallets deleted after the command "exit"?
3
votes
2answers
36 views

Is a wallet needed for the EOSIO account?

I read in the docs - There is no inherent relationship between accounts and wallets. Accounts do not know about wallets, and vice versa. Correspondingly, there is no inherent relationship ...
1
vote
1answer
24 views

Where are my wallets created with cleos wallet create + eosio in docker?

Following learn-about-wallets-keys-and-accounts tutorial in eos website I created my default wallet running: cleos wallet create And according to the tutorial my wallet should be in ~/eosio-wallet, ...
2
votes
1answer
31 views

What is Block ID (from cleos get info)?

I get this - cleos get block 490684 { "timestamp": "2018-08-11T13:36:20.000", "producer": "eosio", "confirmed": 0, "previous": "...
2
votes
1answer
29 views

building cleos outside eos

I'm trying to build cleos separately from the eos directory. bernardo@instance-1:~$ cp -r eos/programs/cleos/ ~/cleos bernardo@instance-1:~$ cd cleos/ bernardo@instance-1:~/cleos$ cmake . -- The C ...
3
votes
1answer
25 views

Is there an equivalent of TransactionReceipt in EOS?

I have just started testing with accounts and I have now this working - cleos get accounts EOS7UBaMK1Nm7ASLBFoHueYtp3YnnH4kEMdbeep7vxtASgHnctupE { "account_names": [ "trevoro2" ] } I ...
3
votes
2answers
177 views

How are all accounts listed and how is the first account created?

If I want to list all accounts, how is that done? (not for a key but to see what accounts actually exist). I know cleos get accounts can be used for a particular key. But I am trying to find out ...
2
votes
2answers
37 views

What is the difference between wallet create and create account?

I get this - cleos wallet private_keys -n trevoro1 password: [[ "EOS7oVsWPXFXYrxZARSf5qZ5ApSYwX882VpFdqESWap4ecxiUH7Jc", "5KRb9FhAusiMGMqiQokVcAbLizLtdTvXXSgieiYVqAwi6eeobdr" ] ] ...
1
vote
1answer
22 views

Why would cleos wallet list fail?

I get this strange behaviour - cleos wallet create -n trevoro Error 3120001: Wallet already exists Try to use different wallet name. cleos wallet list Wallets: [] I cannot get trevoro in ...
2
votes
1answer
74 views

How to compile helloworld with Docker?

I have this setup - alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888 --wallet-url http://localhost:8900' I have this also started - cleos set contract eosio....
4
votes
1answer
36 views

How to create a separate EOS permission for voting using cleos

The goal is to have a new account permission called 'vote' that I can use for voting. If my key for that permission gets compromised I can simply replace it using my active permission. In the meantime ...
2
votes
1answer
29 views

How to use -r header in cleos

What's the purpose to have Options -r in cleos? in version v1.1.3, there is a -r or --header: pass specific HTTP header, repeat this option to pass multiple headers Is there any example to ...
2
votes
1answer
48 views

Smart contract call - Error 3090004: Missing required authority

I'm getting this error: "Error 3090004: Missing required authority" when I try to call contract method. Jungle testnet is used. That is the method: //@abi action void add(account_name ...
2
votes
2answers
43 views

I am not getting Table Rows. Kindly anyone help me?

Everything is working perfectly, the data is stored in it, smart contract deployed successfully, compilation and generation of Abi everything is okay but when I call "Cleos gettable" it returns table ...
1
vote
0answers
22 views

cleos system newaccount result in “assertion failure with message: ram market does not exist”

I'm using local single-node testnet and followed the steps stated in bios-boot-sequence When I try to create new account by cleos system newaccount, I got below error: Error 3050003: ...
3
votes
1answer
45 views

What happens when wallet is kept unlocked on eos mainnet?

Lets say, for pushing a transaction I unlocked my wallet and pushed the transaction with the active permission by command line. So, while wallet is remained unlocked, can anyone who knows my account ...
2
votes
2answers
71 views

Is “cleos transfer” just a shortcut for “cleos push action eosio.token transfer”?

Here is the documentation for cleos transfer. And here is the one for cleos push action. It seems that, whenever we want to write: cleos transfer account11111 account22222 "0.0001 EOS" "memo text" ...
4
votes
1answer
64 views

How can I cancel the deferred transaction in EOS after we push the deferred transaction in the blockchain

I have a action which execute the deferred transaction . Let I send the delay of 20 days . If I want to cancel the deferred transaction before 20 days . Is there any way I can do this ? This is my ...
1
vote
2answers
40 views

How do I stop keosd

I setup my eos environment following this tutorial. https://developers.eos.io/eosio-nodeos/docs/docker-quickstart Since I didn't build from source and did not use the docker-compose stop keosd. Any ...
0
votes
0answers
25 views

How to get assertion messages from Nodeos?

When I trigger a failing eosio_assert my Nodeos instance outputs something like: 2018-08-01T16:45:42.006 thread-0 http_plugin.cpp:476 handle_exception ] Exception Details: 3050003 ...
0
votes
1answer
23 views

Accessing number of tokens and staked tokens not working on single node testnet

I have set up a single node testnet as shown below: nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --contracts-console --verbose-http-errors --delete-all-...
2
votes
1answer
45 views

Issue while compiling contract using eosiocpp

I am facing an issue while compiling the token contract. cd eos/contract/eosio.token eosiocpp -o eosio.token.wast eosio.token.cpp But it shows the following response, eosiocpp: command ...
1
vote
1answer
26 views

How to get BP votes in EOS using cleos?

cleos system listproducers -l 21 -j { "rows": [{ "owner": "bitfinexeos1", "total_votes": "322468184386323200.00000000000000000", "producer_key": "...
0
votes
1answer
37 views

how can i know if a name is account or contract?

How can i use cleos to get all rows from a table? It seems that cleos always only return 10 records? { "rows": [{ "buyer": "1111111111oo", "keys": 70, "award": 198185, "share_award": 0, "...
0
votes
1answer
38 views

Installation issue in EOS

I have cloned the EOS repository and trying to start the script using the following command. `sh ./eosio_build.sh` But it raises the following issue? ./eosio_build.sh: 33: ./eosio_build.sh: ...
3
votes
1answer
63 views

What is the typical RAM size of smart contract?

What is the typical amount of RAM needed to store a smart contract? Can you give some examples and their RAM sizes?
0
votes
2answers
50 views

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

I published a contract to my localnet using: cleos set contract myaccount mycontractfolder -p myaccount Then I made some updates to the code, and want to publish them, I type the same command again, ...
0
votes
1answer
47 views

Error 30700002: Smart contract's apply function not exported; non-existent; or wrong type

I have written a smart contract and I want to start testing it, it contains an apply function, which currently checks for a transfer, and then calls the appropriate function: void mycontract::apply(...
2
votes
1answer
31 views

Why nodeos and keosd url format can't be localhost now?

When I use the cleos -u http://localhost:8888, it will cause error, but if I use cleos -u http://127.0.0.1:8888, that is ok. What's the problem?
2
votes
1answer
47 views

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

The code to get the latest 20 history action by user is get actions <account_name> -1 -20 But I am having problem of retrieving it by 5 items only. I want to achieve to get transaction for ...
1
vote
2answers
151 views

Uploading a contract in a Docker environment

I have EOS running on Docker and can run cleos successfully. my next step is to deploy the token contract but looking in the ./contracts/eosio.token directory I don't see a .wast file. I could ...
0
votes
0answers
32 views

Using bytes properly

i am currently trying to write EOS smart contract by referencing my old solidity contract and trying to achieve the same. In solidity i used bytes16, what is best alternative in EOS? If it is "bytes", ...
1
vote
2answers
55 views

The given contract doesnt' exist in the blockchain

I have got contract code below: #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> using namespace std; using namespace eosio; class deneme: contract { // @abi table ...
4
votes
4answers
79 views

what is the difference between wallets and accounts in eos?

I saw this - https://medium.com/coinmonks/printing-hello-world-with-eos-smart-contract-50fbe873d1b4 I was a little confused that a wallet is created and then an account is created. I did not really ...
1
vote
1answer
38 views

Error 3010008: No ABI found

I was able to push the contract to the jungle test net but i am unable to run the contract. i get this error: Error 3010008: No ABI found what am i doing wrong? thanks.
3
votes
2answers
125 views

How to connect to keosd?

I am trying to deploy a contract to the jungle testnet. I get the following error - cleos wallet import -n trevor5 5KcFCgZiixiZ69dyA5u3......RBQtZ "/usr/local/bin/keosd" launched Unable to ...
0
votes
1answer
36 views

How to get current price of a custom contract token via cleos

I want to know the current price of the CET token via cleos. I can get the supply details using cleos: $ cleos get currency stats eosiochaince CET { "CET": { "supply": "900100052.0000 CET", ...
0
votes
1answer
44 views

How to list all tables I have on main-net account, and how do I see the table keys?

I am struggling with listing all tables that exist on my account, as well as listing all the keys that I got in each table. What would be the cleos command ? Should I need to publish a contract, ...
0
votes
1answer
34 views

How to retrieve historical EOS supply?

I know $ cleos get currency stats eosio.token EOS reports the current supply in the blockchain, but how can I get the supply through time?
1
vote
1answer
29 views

EOS: In order to save & show other clients a piece of information. Is transaction needed? To whom?

Suppose I want to save and send this information to all the world: "I'm Fu Song, I made Taylor Swift pregnant, and I'm going to marry her on Christmas, 2018, so that I will still be a responsible ...
1
vote
1answer
171 views

How to query account balance use EOS api?

How to query the balance of an account using EOS api? Is is possible to query account balance with public key or account name?
0
votes
1answer
121 views

Is it possible to create an account using RPC calls?

Is it possible to create an account in mainnet using RPC calls? First, I built EOSIO nodeos in my own remote server, and I successfully created my coworker's account using cleos. $ cleos system ...
0
votes
1answer
46 views

Cleos wallet creation doesn't work

I have a single node testnet running, but cleos wallet create returns an error. Has anybody else gotten this, and fixed it? I've tried reinstalling all of eosio, and all of the tests (36/36) pass.