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
19 views

Change wallet creation default directory path

On ubuntu 18.04, when I create a new wallet, by default the wallet directory is in the home dir /home/user/eosio-wallet. I am storing all eos related data on disk storage whose path is /storage. I ...
0
votes
1answer
26 views

Keep cleos wallet unlocked using --unlock-timeout arg

I'm trying to keep my eos wallet unlocked. I'm using the cleos command, but I see that there is a --unlock-timeout arg option for the keosd command, but how do I use it for cleos? I'm connecting to a ...
0
votes
1answer
23 views

Call PowerUP via CLI

How can I purchse resources using the PowerUP model via CLI? I see there are net_frac and cpu_frac params, which I don't know how to calculate. Is there any easy way to send a tx to say "I want ...
0
votes
1answer
26 views

dApps: Public networks & Messaging

Could you please help me to figure out the following questions? Is it safe if users of a decentralized application use public nodes endpoint via RPC to make transactions to smart contracts? Such as ...
0
votes
1answer
29 views

dApps: How to run transactions from web app in decentralized way?

I'm thinking about the way how to build truly decentralized web applications. Smart contracts looks like the good idea how to run server logic. To be able to push transactions (actions) from web ...
1
vote
1answer
11 views

EOS STUDIO TERMINAL compilation issue

In terminal, I created a wallet, then created the eosio keys, imported that into the wallet, created an account with those keys, and set up my smart contract that has no errors, but when I try to do ...
0
votes
1answer
26 views

Get_account with Python

After reading the documentation about EOS APIs, I tried to get information about an account on the blockchain by following examples and docs. However it's not working and I really don't understand why....
0
votes
1answer
44 views

EOSFLARE API Request

I'm trying to test the APIs I've found on eosflare because I need to find some blocks and transactions information for my thesis. I was wondering if I could retrieve the data without downloading cleos ...
0
votes
2answers
24 views

How check deferred transaction logs on EOS jungle testnet?

As I working on jungle testnet and perform a 1 deferred transaction with some scheduled automatic time. But I failed to see transaction logs on the jungle testnet. Can any please guide me here with ...
1
vote
1answer
24 views

How to get table data from Jungle testnetwork?

I am trying to get all the insert data using get table on jungle testnet. But I was failed and get only an empty row value. command: cleos --url https://jungle3.cryptolions.io:443 get table ...
1
vote
0answers
18 views

How to set a eos contract on jungle network [duplicate]

As I trying to deploy a contract on Eos Jungle test network using cmd. But I failed to run. Command : cleos --url https://jungle3.cryptolions.io:443 set contract tulsipadalia addressbook -p ...
1
vote
1answer
26 views

How to use CRON as alternative to deferred actions?

I'm trying to set up a CRON job to run maintenance actions in my contract on a regular basis. CRON will call a shell script containing cleos 'push action' commands. The problem is that 'push action' ...
4
votes
2answers
60 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 ...
2
votes
1answer
16 views

Error: Provided keys, permissions, and delays do not satisfy declared authorizations

I am facing some error while running this command cleos create account eosio eosio.bpay EOS6wFEd5JHuUHWtaV12mxnm1v9udPsdrB7LUy1mVFc8iYJNdDMaL It show's the output given below Error 3090003: Provided ...
2
votes
1answer
17 views

cleos push action is not working on multihost peer node

I have a setup of multinode, one genesis node and another host node inita connected to the genesis node. Nodeos is running on both hosts. Genesis node is producing blocks and inita is receiving them. ...
1
vote
1answer
15 views

Usecase of EOS for DApps

I have watched several tutorials for building DApps with EOS. But, All they did in tutorials was deploying smart contract and storing data in the tables. What is the point of doing that?(storing data ...
1
vote
1answer
30 views

How create simple HelloWorld contract?

I try example from book "Mastering EOS". I have written hello.cpp: #include <eosio/eosio.hpp> using namespace eosio; class [[eosio::contract]] hello: public contract { public: ...
0
votes
1answer
18 views

EOS 'newaccount' action generates the error Error: missing authority.keys (type=key_weight[])

I have created a MultiNode Setup using the Bios Boot sequence https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence. And created the accounts as 'eosio' & 'accountnum11'. I am ...
1
vote
1answer
20 views

How do I check what plugins are enabled on an eosio single local testnode, without stopping it?

I want to check if my history_plugin and history_api_plugin is running and which options are enabled. How do I check this from cleos ? Also, can I enable history_plugin without replaying or stopping ...
1
vote
1answer
66 views

EOSIO Tutorial: Development Public Key vs eosio development key

Many questions, thanks in advance for any help. In the eosio tutorial (1.4 Create dev wallet) I have created a wallet and the message returned is: Created new private key with a public key of: "...
1
vote
1answer
70 views

Creating new account in EOS Studio throws signatures error

Hello stackExchange community. I am trying to follow along the Udemy Elemental Battles dApp tutorial, I have created a smart contract with login functionality and compiled it successfully, but when I ...
0
votes
1answer
53 views

How to access keosd API like create wallet, what are the input parameter

I am new with eosio, and I want to create a wallet and sub wallet. I just took reference of [https://developers.eos.io/manuals/eos/latest/index][1] and while going through the document I found that ...
1
vote
1answer
103 views

How to add “eosio.code” permission to an account on testnet?

I am trying to add a the "eosio.code" permission to an account on testnet. I am using the following command: cleos -u https://api.testnet.eos.io set account permission lsqkeotnnpyu active '{"...
1
vote
1answer
247 views

transaction declares authority '{“actor”:“mymultisig11”,“permission”:“active”}', but does not have signatures for it under a provided delay of 0 ms

I am following the given tutorial of multisig : https://steemit.com/eos/@genereos/eos-multisig-tutorial And I am stuck for the command cleos multisig exec partner11111 payme -p partner11111@active ...
1
vote
1answer
56 views

cleos data getting inserted and deleted but table shows empty record

I have written one smart contract for insert, update and delete data. The smart contract is compiled and deployed to the two accounts. I insert data using calling the action upsert, this transaction ...
1
vote
2answers
453 views

overdrawn balance error on cleos system newaccount

I create 3 different account already, but i try to create new account with this: cleos system newaccount eosio --transfer kyc1 <PUBLIC_KEY> --stake-net "100000000.0000 SYS" --stake-cpu "...
2
votes
1answer
19 views

How to use eosjs V20 to create and sign a offline actions?

when I create actions like this,and prapare to use JsSignatureProvider to sign (async()=>{ let actions = [{ account: 'tommy', name: 'hi', authorization: [{ actor: 'tommy', ...
1
vote
1answer
17 views

system claimrewards not working

I've been trying to do cleos --wallet-url "http://127.0.0.1:8905" system claimrewards bitgirl -p bitgirl@active but its giving me error Error 3050003: arisen_assert_message assertion failure Error ...
1
vote
1answer
260 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 ...
1
vote
1answer
19 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
2answers
90 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 response of push_transaction API is not accurate Can anyone help me with this?
2
votes
2answers
130 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 ...
1
vote
1answer
24 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 ...
0
votes
1answer
30 views

Oraclize inspecting contract queries

in reading through this guide: https://docs.provable.xyz/#eos-advanced-topics I'm attempting to see the queries issued to the contract: cleos -u https://kylin.eos.dfuse.io/ get actions oraclizeex1a -...
1
vote
1answer
83 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 ...
2
votes
2answers
88 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 ...
1
vote
1answer
33 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
2answers
133 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
550 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
31 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
17 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
1answer
47 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 ...
0
votes
2answers
117 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 ...
0
votes
1answer
57 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
18 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
47 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
1answer
43 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
1answer
360 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
187 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
567 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 ...

1
2 3 4 5 6