Questions tagged [cleos]

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.

Filter by
Sorted by
Tagged with
15 votes
1 answer
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 ...
Danail's user avatar
  • 536
9 votes
1 answer
121 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 ?
Evandro Lorenzoni's user avatar
9 votes
1 answer
701 views

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

cleos doesn't have a subcommand for this.
peng wan's user avatar
8 votes
3 answers
2k views

Multiple EOS transfers in a single transaction

Is it possible to pack a few transfers of EOS token to different accounts inside of single transaction? I know it's possible to pack multiple arbitrary actions inside one tx, but what about EOS token ...
Vasiliy Bondarenko's user avatar
7 votes
3 answers
1k views

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

WHAT I WANT Call an action and see it succeed at the first execution. WHAT IS NOT WORKING The function, which I am executing, the first time fails with error: Error 3080006: Transaction took too long ...
Riccardo Persiani's user avatar
7 votes
2 answers
392 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 ...
Trevor Lee Oakley's user avatar
6 votes
3 answers
4k views

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

Given a list of block producers such as this one: https://eosportal.io/chain/12/producers or this one http://eosnetworkmonitor.io/ How do I figure out the API endpoints that I can connect to with ...
Vlad's user avatar
  • 885
6 votes
1 answer
341 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?
Phillip Hamnett - EOS42's user avatar
5 votes
1 answer
1k 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 ...
Nirdesh Kumar's user avatar
5 votes
2 answers
1k 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 ...
Trevor Oakley's user avatar
5 votes
1 answer
180 views

How to verify signature from $ cleos get block BLOCKNUM

How to verify the signature of data returned from $ cleos get block BLOCKNUM to insure that the data returned came from the blockchain and not 'spoofed' by a man-in-the-middle? cleos get block 132 {"...
Gunnar Pope's user avatar
5 votes
1 answer
124 views

why core_liquid_balance field not show at cleos get account?

when use http://api.oraclechain.io, core_liquid_balance field is missing { "account_name" => "wangmingyuan", "head_block_num" => 12584842, "head_block_time" => ...
seaify - Freelancer's user avatar
4 votes
3 answers
1k 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": "...
Nirdesh Kumar's user avatar
4 votes
1 answer
263 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 ...
ottomagic's user avatar
  • 113
4 votes
1 answer
524 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?
curiosityhover's user avatar
4 votes
2 answers
2k views

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

How can I change the owner of an account? Can an account have more than one owner? I see that active and owner are groups so theoretically there can be multiple keys in either group. But how can I ...
ovi's user avatar
  • 310
4 votes
1 answer
485 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 ...
JustinZ's user avatar
  • 295
4 votes
4 answers
537 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 ...
Trevor Oakley's user avatar
4 votes
2 answers
2k views

How to Clear/Reset Local Test Instance

How to completely erase all the data from local EOS instance? After shutting down nodeos and deleting all the files from both ~/Library/Application Support/eosio/nodeos/data and $HOME/eosio-wallet, ...
schabluk's user avatar
  • 143
4 votes
2 answers
154 views

Create accounts on an EOSIO private blockchain

We are developing a private blockchain based on EOSIO. The account creation part puzzles me. AFAIU, cleos can be used to create accounts using pre-generated keys. I have a few questions: What is the ...
towi_parallelism's user avatar
4 votes
3 answers
355 views

What is the use of eosio.code?

Some major questions I have: What does eosio.code mean? When do we require eosio.code? Why it is not mentioned in the official EOSIO developer's documentation?
yash vadhvani's user avatar
4 votes
1 answer
554 views

How to get Total supply of EOS?

I'm curios about EOS stat data which can fetch from table using cleos get table eosio.token EOS stat. In eos authority(https://eosauthority.com/voting), Total EOS Supply value is different from real ...
Jason's user avatar
  • 317
4 votes
1 answer
78 views

Is it possible to see the state of a multi index table for a given block number?

Does the ability currently exist in EOS to see how the state of a persistent memory table was at some point in the past?
Phillip Hamnett - EOS42's user avatar
4 votes
1 answer
253 views

Is there a way to create offline transaction with cleos (or any other safe tool)?

Trying to transfer EOS on main net using air gapped computer. Want to print a transaction and then type it manually.
takeshi's user avatar
  • 183
4 votes
1 answer
519 views

Getting an Account List from Mainnet?

Is there a way to get a list of all account holders addresses with their EOS balance on mainnet without downloading the whole blockchain for the purpose of airdrop? Thanks for the help.
elnews's user avatar
  • 41
4 votes
1 answer
339 views

Table producers is not specified in the ABI {"table":"producers"}

I'm so close. I ran ./nodeo --delete-all-blocks and it cleared up an error I was having previously and there's one command I can now run in CLEOS by myself without piggybacking off of a block ...
Brian M.'s user avatar
  • 141
3 votes
1 answer
629 views

how to create private network same as mainnet?

I want to build a private network same as the mainnet of eos. Just like it's mainnet I want to have 21 producers I want voting and etc. etc. how exactly I can do that can anyone list the steps for the ...
yash vadhvani's user avatar
3 votes
1 answer
2k views

Get table rows HTTP API in JSON

When I try to get table using curl --request POST \ --url http://bp.cryptolions.io:8888/v1/chain/...
Ostap Horbach's user avatar
3 votes
3 answers
880 views

Creating a keypair through the RPC API

Is there a way to create a keypair through the RPC API? Previously, I've been doing this with cleos wallet create_key or cleos create key but now I'm building an application that needs to do this ...
Anconia's user avatar
  • 133
3 votes
2 answers
501 views

transaction with actions across two contracts

Given two contracts, I'd like to push a transaction that requires successful completion of an action by each of the two contracts. If either action by either contract fails then all actions by all ...
kkurian's user avatar
  • 695
3 votes
1 answer
771 views

How to transfer EOS Token with eosjs? [duplicate]

The title sums it up ;-) I'd like to move EOS tokens (say EOSDAC for example but any token will do it for my education) using the eosjs API... I've tried to use Scatter.js and did that but it's not ...
Linda's user avatar
  • 185
3 votes
1 answer
559 views

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

In V1.5 there is no way wallet timeout can be set. Is there any way keeping wallet open/unlocked all the time?
VJV's user avatar
  • 113
3 votes
3 answers
707 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, ...
Phillip Hamnett - EOS42's user avatar
3 votes
1 answer
577 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 ...
rechie's user avatar
  • 131
3 votes
1 answer
136 views

Error 3030002 when trying to set contract steps

I'm following steps from exchange-tutorial-python's README file inside the Docker container: $ docker run -it eosio/eos # nodeosd.sh 2>/dev/null & # cleos wallet create Creating wallet: ...
kenorb's user avatar
  • 889
3 votes
1 answer
198 views

How do I set my smart-contract / account to "immutable"?

What's the correct cleos command to yield the active/owner permissions of a deployed contract to "eosio.code", exclusively?
Fabiana Cecin's user avatar
3 votes
2 answers
567 views

cleos create account not working on local node

I am facing a problem related to creating account on local node. Steps followed: nodeos running on a separate terminal. wallet is unlocked list keys using cleos wallet keys. It gives output as: [ "...
abhi3700's user avatar
  • 323
3 votes
3 answers
966 views

How to create wallet using eosjs or RPC call

I want to perform cleos create wallet -n <wallet_name> using an RPC call or any predefined library like eosjs. Please Help... EOS version : 1.2.0
yash vadhvani's user avatar
3 votes
1 answer
714 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. ...
Chemistry's user avatar
  • 225
3 votes
1 answer
864 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": "...
Trevor Lee Oakley's user avatar
3 votes
2 answers
1k 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 ...
Trevor Lee Oakley's user avatar
3 votes
1 answer
710 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 ...
iobeta123's user avatar
3 votes
2 answers
308 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 ...
Sheharyar Ch's user avatar
3 votes
1 answer
157 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 ...
Rajat Chaudhary's user avatar
3 votes
2 answers
156 views

Trying to re-deploy the contract gives Assert Exception (10)

I am trying to re-deploy the contract by doing: cleos -u http://api.eosnewyork.io set contract gazaomauaaae /eos-master/contracts/some.contract /eos-master/contracts/some.contract/some.contract.wast ...
Damir Olejar's user avatar
3 votes
3 answers
1k views

Cleos asks for authority in transaction, but authority is in transaction

Edit: Bounty will be opened in 10hrs from writing (can't do it earlier). This question has been edited to meet the depth necessary to trouble-shoot an issue. The bounty will be issued as soon as the ...
Damir Olejar's user avatar
3 votes
1 answer
198 views

8000 TPS in EOS

I have created a private network of 6 nodes in which 2 nodes are block producing nodes and remaining 4 are non-block producing nodes. I have changed block time from 0.5 sec to 1 sec. I have to ...
Avinash Vazratkar's user avatar
3 votes
1 answer
498 views

Deploying contract to jungle testnet wallet error

I am trying to cleos set contract lonklytestt4 ./missions missions.wasm missions.abi and getting: Using correct URL, but when trying to set contract for user I get: Reading WASM from ./missions/...
Vivienne Fosh's user avatar
3 votes
1 answer
112 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 ...
Trevor Lee Oakley's user avatar
3 votes
1 answer
57 views

EOS transactions for Future execution

There is slight confusion about creating and signing transaction which I can process/send in future date. My understanding is that to create a transaction, it must have following attributes values ...
VJV's user avatar
  • 113

1
2 3 4 5
7