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
6 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', ...
0
votes
0answers
5 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 ...
0
votes
0answers
5 views

system claimrewards

i 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 3090003: Provided keys, permissions, and delays do not ...
1
vote
1answer
11 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
10 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
35 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
38 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
0answers
9 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
36 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 ...
1
vote
1answer
33 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
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....
0
votes
1answer
48 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 ...
1
vote
0answers
226 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
23 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
16 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
14 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
23 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
1answer
44 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
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 ...
0
votes
1answer
30 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
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
21 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
18 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
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
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
125 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
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>
0
votes
0answers
44 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
87 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
198 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
131 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
22 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
55 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
26 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
49 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
66 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
75 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
70 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
39 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
27 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
49 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
56 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
53 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
78 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
128 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
45 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
44 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
152 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
2 3 4 5 6