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
25 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", ...
0
votes
0answers
6 views

Reference block is invalid during Transfer

I Tried the transfer of 1 eos from my account to other, to day just for some test transfer, i am using cleos to transfer but when i did it throwed the exception Error 3040007: Invalid Reference ...
0
votes
1answer
9 views

Type mismatch error when creating iterator

I'm getting a type mismatch error when I try to execute an action. Here is the line that's causing problems: auto iterator = table.require_find(primary_key, ("Could not find entry " + std::to_string(...
1
vote
1answer
18 views

How to get Block Number

Which is the accurate method to get the block number to which a transaction is written after executing a transaction? The resposne of push_transaction API is not accurate Can anyone help me with ...
1
vote
2answers
36 views

Action setprods on EOSIO v2.0 private chain

I'm standing up a new private testnet and would like to set the producers via the "setprods" action in the eosio.bios contract. I don't need a full system contract for this chain. The format for the ...
0
votes
1answer
27 views

Unsupported abi version

I am making an offline transaction. I am providing the API with the following parameters as an object: rpc: new JsonRpc('https://jungle.eos.dfuse.io/', { fetch }), signatureProvider: new ...
0
votes
0answers
8 views

Is it possible to connect to the main net through the web ide?

I'm learning how to navigate my way around with Cleos on the Web IDE release by B1 late last year. I know it spins up a personal chain but is there a way to connect to the public chain and publish a ...
1
vote
1answer
742 views

scope in the get table command

What is the meaning of scope argument in the get table command? For example, in the todo_contract, (https://developers.eos.io/eosio-cleos/reference#cleos-get-table) we have cleos --wallet-url http:...
2
votes
1answer
30 views

When running “sudo cleos wallet keys” I can't see the keys but with “cleos wallet keys”, I can see them

I've built the source I'm not using docker. I'm on ubuntu 16.04. eos version is 1.4.3 when running sudo cleos wallet keys I can't see the keys but with cleos wallet keys I can see them. How ...
1
vote
2answers
125 views

ERROR: RequiredError: OwnerKey Create a new account on the blockchain (assumes system contract does not restrict RAM usage)

I have wallet create with cleos cleos wallet list Return Wallets: [ "demowalleteos" ] I create pair key with cleos cleos create key --to-console But, when I create account system require ...
1
vote
1answer
29 views

Error querying RAM: Unable to unpack built-in type etc

Hey guys I'm hitting an error while trying to query my RAM tables - the table definition has vectors of custom structs in it, and for some reason throws an error regardless of the datatype in the ...
0
votes
1answer
44 views

Eosio account create problem

cleos create account eosio mark prikey1 prikey2 if i run this it will show error Whether I must import key to default wallet or to eosio etc? Thanks
1
vote
2answers
163 views

Error 3015004 when creating tokens in tutorial

Caseys-MBP:eosio.token casey$ cleos push action eosio.token create '[ "eosio", "1000000000.0000 SYS"]' -p eosio.token@active Error 3015004: The type defined in the ABI is invalid Error Details: ...
0
votes
1answer
42 views

how can you use the ONLY_BILL_FIRST_AUTHORIZER feature for updateauth?

when i try to put 2 authorities to updateauth i get this error Error: updateauth action should only have one declared authorization so how can i use another accounts cpu to change my keys not using ...
2
votes
1answer
263 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?
1
vote
2answers
249 views

How to transfer/deposit tokens on Front end Dapp with Scatter?

I am working on an EOS frontend Dapp with Scatter on local chain. I am getting a problem with transfer/deposit tokens from one account to another. After logging into scatter with "test1" and trying to ...
0
votes
1answer
41 views

how to create a unique user name using public or private key in nodejs?

Like BTC, ETH etc has address, do EOS has address or username etc, I am using below code to generate the public and private key, we do transaction in bitcoin,ethereum etc with a unique address sample ...
1
vote
1answer
47 views

How to get block producers votes on some past date?

Can't figure out... How to get block producers votes on some past date? From cleos preferably :) By default it returns latest data, while i need it for let's say - yesterday or a week ago. Or can i ...
0
votes
1answer
18 views

Not able to claim rewards

I am running my private chain with 3 BPs, I have created 1000000.0000 tokens, I have issued 100000.0000 tokens, and run the further steps for setting up the chain, I voted all the BPs with 10-15 ...
1
vote
2answers
145 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
65 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
357 views

How to solve !action_type.empty(): Unknown action hi in contract hello?

I am following this doc: https://developers.eos.io/eosio-home/docs/your-first-contract. This is the hello.cpp contract code which is successfully deployed: #include <eosiolib/eosio.hpp> #...
0
votes
1answer
25 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: { ...
1
vote
2answers
323 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::...
0
votes
1answer
10 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
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
15 views

Amount deposited not being recorded in contract

I'm learning to make my own contract and I'm having a hard time getting LNX that is transferred to the contract to be recorded ad a balance. #include <eosio/eosio.hpp> #include <eosio/asset....
1
vote
0answers
204 views

Error 3080004: Transaction exceeded the current CPU usage limit imposed on the transaction

I have an account with very little staked CPU/NET but I need to do some transfers of another token and I currently can't do anything: $ cleos -u https://api.eosnewyork.io:443 get account auewijsdh312 ...
0
votes
1answer
22 views

Function not giving expected output Eos smart contract

My contract .Cpp part void mainloan::adduwr(name acc_name, double interest, uint64_t loan_amount ) { print("Adding underwriter", acc_name); // require_auth( _self ); uwr_table.emplace(get_self(...
0
votes
0answers
15 views

A non-producing block, create account stuck

I am having a non-producing node for my chain. But when I run the command cleos create account eosio myaccount PUB_KEY PUB_KEY But it stuck somewhere. No output for a long time. I have put --print-...
0
votes
0answers
13 views

Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations [duplicate]

I am trying to create an account with different creator NOT EOSIO. I have configured node config.ini producer-name = sunny signature-provider = PUB_KEY=KEY:PRIVATE_KEY Error 3090003: Provided keys, ...
0
votes
0answers
18 views

How different is the chain start process (EOS-Main/ TELOS, etc.) from the boot-sequence in the tutorial at developers.eos.io

how would a normal new chain start look like? (or in which way is it different from the BIOS boot sequence descripted at developers.eos.io) you have a genesis producer which while install all ...
1
vote
2answers
112 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 ...
4
votes
1answer
108 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 {"...
0
votes
1answer
20 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
16 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
19 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
12 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
2answers
66 views

usr/bin/cleos no such file or directory

I am using Ubuntu 18.04 LTS. I am trying to deploy a smart contract, following a Steemit post but I am getting an error that I don't really understand. I have run nodeos according to the the Eos ...
0
votes
0answers
5 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
96 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/...
1
vote
2answers
89 views

How to claim a premium name?

what is the cleos command to claim a premium name after winning the bid? is it even possible to claim it via cleos command line tool? searching through its parameters there's not much that leads to ...
2
votes
4answers
709 views

is it possible to create an account using Cleos?

I've bought EOS on exchange recently and may not has an account on mainnet. So I really want to create an account prior before mainnet gets ready. I understand that if we install full note and ...
0
votes
0answers
8 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>
6
votes
3answers
1k 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 ...
0
votes
0answers
40 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.
2
votes
2answers
185 views

Beginner question about signing transaction with cleos

I am new to EOS and having some trouble. I got cleos working and I am connected to one of the api endpoints found here. It's working as far as I know since I am able to get block info. My end goal is ...
2
votes
1answer
950 views

How to use “cleos push transaction”?

I'd like to make a simple action in the format of cleos push transaction. Motivation: DApps often need transactions with multiple actions, which can't be done with cleos push action. So the natural ...
1
vote
1answer
585 views

Transaction expiration time

Is it possible to configure or change the "expiration": "2018-06-26T14:33:24", time? Currently its 30 seconds on my local node after I generate a transaction so I do not get time to execute it and ...
0
votes
0answers
72 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 2 3 4 5 6