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
0
votes
1answer
15 views

What after push transaction?

I have created a custom action called hash. And I have push transaction with that action successfully. now when I fetch a transaction with transaction_id, it responds transaction object as follows: { ...
0
votes
1answer
5 views

Error 3200002: invalid http response Error Details: Invalid content-length response

Everything was working fine till Saturday evening. But when I tried to open wallet using cleos wallet open So it throws 3200002 error. Thanks
0
votes
1answer
13 views

Unknown action hashit in contract eosio

stdClass Object ( [code] => 500 [message] => Internal Service Error [error] => stdClass Object ( [code] => 3050000 [name] => action_validate_exception [what] => Action validate exception [details] => ...
0
votes
0answers
10 views

Error 3060002: Account Query Exception

I am getting failed to retrieve account for eosio.token while transferring tokens from account1 to account2. (dev) root@dev-eosio-1:/home/ldxdev/sghxtoken$ cleos get currency balance token1 ...
0
votes
1answer
8 views

What should I do to specify an optional action parameter for cleos?

I wrote an action that has an optional parameter, as something like: [[eosio::action]] void foo(..., const std::optional<name>& recipient); Then in the generated .abi, it is represented as:...
0
votes
0answers
11 views

Transfer the transaction again after it was not appearing in blockchain explorers

I was sending the transaction using the command like: cleos -u "https://eosapi.blockmatrix.network:443" transfer {account_from} {account_to} "{amount} EOS" "{memo}" and got the problem with one ...
0
votes
0answers
4 views

setting the cleos -u parameter

I'm running cleos without a local node and attaching to different remote nodes. This involves constantly remembering and typing in the -u parameter. Is there a config file where I can set cleos -u ...
0
votes
1answer
26 views

Invalid packed transaction

I am trying RPC API. Here is the code which I am using on cmd for testing a dummy transaction. curl --request POST --url http://localhost:8080/v1/chain/push_transaction --header 'accept: application/...
0
votes
0answers
7 views

Querying an instance of cleos synced to the mainnet online

Is there a website that run a nodeos sync to the mainnet blockchain and allow users to run simple cleos command like cleos get account <name>
0
votes
0answers
29 views

Error creating account within EOS studio

I am trying to create an account in EOS studio. It throws this error: transaction declares authority {"actor":"eosio","permission":"active"}, but does not have signatures for it.
0
votes
0answers
21 views

Error message assertion failure with message: “read”

I made my own smart contract. and tried to erase my table. But it didn't. I will attach the following error { "code": 500, "message": "Internal Service Error", "error": { "code": 3050003, ...
1
vote
1answer
47 views

A working example of cleos push transactions

Has anyone ever pushed an array of transactions using the cleos push transactions command? If so, can you show how you prepared the transaction array JSON and a working example of the command being ...
0
votes
1answer
50 views

Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations, how to solve this error?

I am creating an account to manage other accounts. The command is $ cleos create account eosio accountadmin publickey1 publickey2 But I am getting an error saying that provided keys, permissionsm ...
0
votes
0answers
12 views

It didn't match the Provied keys in eosjs

First I got a error: eos.min.js:1 {"code":500,"message":"Internal Service Error","error":{"code":3090003,"name":"unsatisfied_authorization","what":"Provided keys, permissions, and delays do not ...
1
vote
3answers
40 views

Is it posible to deny EOS transfers for Account?

Imagine I have account A and account B. Account A is the "owner" of B and A wants to deny EOS Transfers for Account B and allow all other Actions(that means A should have full "active" operations)? ...
1
vote
0answers
25 views

How can EOSIO know the block number?

I have made my EOS world. If you follow the Nodeos biosboot manual (https://developers.eos.io/eosio-nodeos/docs/bios-boot-sequence), you would know eosio is to be BP. BP have to make a lot of blocks. ...
1
vote
1answer
44 views

Why we need an EOSIO account to transfer token?

I have started working on EOSIO. I am following this document. I have created a wallet using cleos. Then open, unlock and import key in it. After that according to document, we need two accounts to ...
0
votes
1answer
43 views

EOSIO - Error 3120006: No available wallet

I have created wallet using RPC API. http://127.0.0.1:8891/v1/wallet/create Here, keosd run on port number 8891 and nodeos run on 8892. Then, I have opened, unlock and import key into wallet using ...
1
vote
1answer
48 views

Is it possible to deploy contract via curl?

Using command line i am deploying smart contract "eosio.token". cleos -u http://127.0.0.1:8888 set contract eosio.token ./eosio.token -p eosio.token Is it possible to deploy smart contract using ...
1
vote
1answer
40 views

Cost of table storage and retrieval

I understand that there is a cost to storing data in table, my questions is how to estimate the cost. {"key": "3773036822876127234", "first_name": "bob", "last_name": "smith", "street": "123 My St", "...
2
votes
1answer
27 views

Issue registering proxy in a new EOS enviroment

I just setup a new instance of EOS. I loaded all the system contracts (system, bios, msig, wrap ...) without problems, but when I call the proxy actions: cleos system regproxy cleos system ...
0
votes
0answers
25 views

Why EOSIO using eosio.token?

When you transfered the token to another account, you can see the console log in terminal... Like this : eos@ubuntu:~$ cleos transfer eosio account_name "0.1 SYS" executed transaction: ...
0
votes
0answers
19 views

How to get external data into a smart contract

Is there any way I can call an external API or a smart contract on other EOS sister chains or other blockchains from within an EOS smart contract. Or maybe some decentralised service that will ...
0
votes
0answers
30 views

Understanding a multi index contract line by line

I'm looking for some help to understand each line of this erase_me contract, I have added what I think it does and id like to be corrected as im very unsure how this works. lines 0,1,2: We include ...
0
votes
1answer
34 views

Create test account using EOSIO

I am new with EOSIO. I have created account using cleos command. cleos create account eosio bob YOUR_PUBLIC_KEY cleos create account eosio alice YOUR_PUBLIC_KEY It's successfully created. But, I ...
1
vote
1answer
26 views

Why doesn't a deployed contract print

When I run the hello world contract locally it prints Hello to the console, but when i deploy it to Kylin it doesn't. Is this expected? If so how to can I return something like json from a deployed ...
0
votes
1answer
44 views

Add multiple permissions to account in EOS

When I try to set a single permission, it is working fine: cleos --url https://jungle2.cryptolions.io set account permission market active '{"threshold": 1,"keys": [{"key": "MARKET PUBLIC KEY","...
0
votes
2answers
51 views

How to print out the time in an EOS contract?

I expected to be able to print out the time in a contract but... print(current_time()); didn't get compiled and I get the error "use of undeclared identifier 'current_time'"
0
votes
1answer
31 views

how to specify an account by name in require_auth('_self');

Instead of using require_auth('_self') is it possible to specify a single or many users, somthing like require_auth('bob'); or require_auth(["bob", "alice"]); the rest of the contract is #...
1
vote
1answer
37 views

RPC Wallet integration API throwing an error

I am new with blockchain services. I have created wallet using command line. curl -X POST http://127.0.0.1:8888/v1/wallet/create -d '"WalletTest" It's created successfully. But, I'm trying to ...
1
vote
2answers
82 views

EOS Block Producer Schedule

I have followed the Boot Bios sequence of eosio and setup a eos private blockchain. The problem is my even though i have created also Block producers and also voted for them still the blocks are ...
1
vote
1answer
19 views

What is the file structure and directories of where CLEOS saves its data and user data for Ubuntu?

I am running Ubuntu 18.04 and was wondering where does cleos store its data? And where are user's wallet data stored when importing or creating a new eos wallet?
1
vote
0answers
39 views

What is the inflation schedule for EOS private blockchain?

I have followed the bios boot sequence https://developers.eos.io/eosio-nodeos/docs/bios-boot-sequence to create private EOS blockchain. Now everything has been done but there are some point I want to ...
1
vote
1answer
39 views

How to delete record on EOS if I forget table structure

I issue an EOS token for fun half a year ago and I'm planning to release my EOS ram recently. The problem is that I forget the table structure I made before and I overwrite the contract and there is ...
0
votes
1answer
43 views

How can I determine if I need to create a wallet?

I asked this question on StackOverflow but I guess this would have been a better place to ask, so I'm reposting I'm writing an automation script that creates a wallet when necessary. the problem I ...
0
votes
1answer
20 views

Wallet create_key api gives an error?

What input I have to give to get a key? { "code": 500, "message": "Internal Service Error", "error": { "code": 0, "name": "exception", "what": "unspecified", ...
1
vote
0answers
27 views

How many requirement to make EOS testnet

I have made my local EOS testnet. Almost I followed the Bios Boot Sequence Pages. So I made a "eosio" account and created two block producers that were registered in chain. So three were created. But ...
0
votes
1answer
41 views

Is it possible to use a Ledger with cleos?

I would like to protect my dApp production keys. Is it possible to use Ledger to protect my private keys and deploy with cleos? I would like my private key to remain on the device.
0
votes
1answer
32 views

cleos system deposit rex assertion error

When I use the command cleos --print-request -v -u https://api1.eosasia.one/ system rex deposit -x 60 myaccounthere '3.0 EOS' I got the following errors: Error 3050003: eosio_assert_message ...
1
vote
2answers
90 views

Errors while building on eosstudio

I tried the below code from a tutorial of a simple eos contract on a game but i get 10 errors while building it on eosstudio wasted a lot of time trying to figure the errors out but failed appreciate ...
1
vote
0answers
14 views

How to view links between actions and permissions?

Currently I create permissions perm* for user user, and authorize it to push action action* to the code-containing account code like so: cleos set account permission user perm* PUBLIC_KEY active ...
0
votes
1answer
25 views

Random eos account name with cleos

Is there a way to generate a random EOS accountname or map to the public key? I remember at the beginning of the ICO, Block.one assigned a random generated name to your EOS public key. Is there a ...
1
vote
1answer
94 views

Serialization Error Processing WASM while following hello.cpp tutorial

I am following along the tutorial on the EOS website at https://developers.eos.io/eosio-home/docs/your-first-contract At the first smart contract development section, I cannot manage to publish the ...
1
vote
1answer
26 views

Reasons for unlocking EOS wallet before importing private keys

I've been wondering about this. Is there a reason why you need to unlock the EOS wallet before importing Private Keys into it? Thanks.
1
vote
1answer
92 views

Retrieve data from multi index table

I found that it is possible to define up to 16 secondary indices for a multi index table. Is it possible to return data from the table using these secondary key? I have a table like, result is set as ...
0
votes
2answers
362 views

How to install cleos?

I've installed EOSIO.cdt from here . But I can't access cleos program and getting : Command 'cleos' not found, did you mean command 'cleo' from deb cleo Try: sudo apt install Firstly I ...
0
votes
1answer
18 views

Is there an easy way to track # of operations on EOS in a single day?

I need to know the daily operations on the EOS blockchain. I understand that each transaction can have several operations. If I set up a node on my computer how would I start counting operations? ...
0
votes
0answers
42 views

Error while pushing a transaction using python?

after successfully signed the transaction, when i try to push it using the pyton api from the eos developers portal, i got the following error {'code': 500, 'message': 'Internal Service Error', '...
0
votes
1answer
79 views

How to unlock my wallet using nodejs?

The code given below is my nodejs code forunlocking my wallet name "seek".I got this API from eos developers portal,but don't know how to pass input data(wallet name and password) into it.Please help ...
2
votes
1answer
35 views

Is there any way to discard a committed transaction?

I always have this doubt whenever i push a transcation. Is there any way to cancel a committed transaction before it's verifed by the block producers?