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
0answers
20 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
14 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
30 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
30 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
9 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
37 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
24 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
42 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
36 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
40 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
36 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
22 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
22 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
24 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
32 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
18 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
40 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
41 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
30 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
33 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
60 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
35 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
37 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
17 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
24 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
33 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
24 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
82 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
22 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
86 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
75 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
248 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
14 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
33 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
64 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
34 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?
0
votes
0answers
13 views

Stuck after Docker Quick start [duplicate]

I followed steps from official guide here: https://developers.eos.io/eosio-nodeos/docs/docker-quickstart All seems to works as expected and I can navigate my browser to http://localhost:8888/v1/...
0
votes
0answers
29 views

error while compiling code in eosstudio?

Recentlty, i tried a eosio IDE named eosstudio,which is pretty impresive.The problem i face while compiling my code is given in the picture.then I got an advice from a telegram channel that,chenge the ...
1
vote
2answers
108 views

Is there any IDE for eos smart contract?

Is there any IDE for compiling eos smart contract? for example ethereum have remix to compile and run solidity based smart contract.
0
votes
1answer
27 views

Any python api for getting account name by inputting public key?

Is there any python api for getting account name by inputting public key? I have got this code from developers portal, but I don't know how to use it. import requests url = "http://host/:port/v1/...
0
votes
1answer
38 views

How to add the formula of ram calculate price for eos in our project?

Actually I am building an application and I would like to add the ram calculation for eos there. if anyone wants to calculate the ram for the accounts creation, he can use our website.thanks.
1
vote
1answer
88 views

Broadcast Smart Contract 'Hello World' error

I am going through the eos tutorial but I got stuck at the contract broadcast. When I compile the contract with eosio-cpp -o hello.wasm hello.cpp --abigen the console seems to get stuck and I have ...
2
votes
1answer
27 views

Cannot pass arguments to push action in bash script

I am using a bash script to push actions. Here is the script : echo "------------------> Pushing action $1" #cleos -u https://api-kylin.eoslaomao.com:443 push action user1account issue '["...
2
votes
1answer
83 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?
1
vote
1answer
56 views

`cleos get table` not returning vector<string>

I declare a vector vector<string> data inside a contract. Contract Code: book.emplace(_self, [&](struct wname &a){ a.name = fa.pubaddress; a.namehash = ...