Questions tagged [permissions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

Is it possible to remove the keys/authorization from an Eos account for a fixed period of time only?

In particular, I'm looking for a solution that gives up control of the account and then gets it back after a given amount of time.
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
1answer
18 views

What are the permissions on the eosio.prods accounts used for

eosio.prods has the following permissions (see https://eosauthority.com/account/eosio.prods#keys): 15/21 active (controls the eosio account) 11/21 prod.major 8/21 prod.minor these are updated at ...
1
vote
1answer
21 views

Can smart contract trigger some action on specified timestamp and change certain account balances?

Imagine I have a poll with specified timestamp for the end. At that point in time votes should be tallied and voters token balances should be adjusted in both directions (increase and decrease). How ...
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
1answer
22 views

Unable to publish to Kylin

I have been developing against a local node, for which I created a key-pair. Now that it's time to publish to the testnet, I've imported said private key into Scatter and linked it to the account to ...
0
votes
0answers
12 views

Eosio.msig Shared wallet problem

I have a multi-signature configured account ‘A’ and I authorized two accounts to approve a proposed transaction. When I have all the keys imported in the same wallet for account ‘A’ and the other two ...
1
vote
1answer
20 views

How to fetch linked permissions?

I'd like to see what actions my permissions are linked as a result of using linkauth. The v1/get_account info does not return this information. What other ways are there to look up what action a ...
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
0answers
11 views

Simple token deposit function fails permission check [duplicate]

This deposit action is inspired by the EOSIO dice contract (especially the action().send() bit, which fails): https://github.com/EOSIO/eos/blob/v1.0.5/contracts/dice/dice.cpp accounts is the same as ...
1
vote
0answers
38 views

Multi-signature Account with Wait Time

I want to create a shared hierarchical account using time delays and multi-sigs. My intention is to use a "wait" time delay in conjunction with a mutli-sig proposal. I want to require a multi-sig ...
1
vote
1answer
38 views

Is it possible to lock publish contract with set permission?

Is it possible to setup a lock (multisig) for the command cleos set contract ? in order to request one or more signatures to deploy a contract ? cleos set action permission eosio eosio set ...
0
votes
0answers
20 views

Why don't we need to specify the account permission when executing unlinkAuth?

EOSIO account can create additional keys beyond just active and owner. By default, these new keys will have no permission to execute any transaction whatsoever. To give the key permission you call the ...
1
vote
1answer
44 views

require_auth( user ) not working in HelloWorld

I ran through the hello world tutorial. First time I ran through using v1.6 of nodeos and it worked as advertised. Upgraded to v1.7 of nodeos and the require_auth(user) did not restrict user from ...
0
votes
1answer
30 views

What is the role of a claimer key in eosio account?

I have seen the owner key and active key but does anyone know, what is the use of the claim key?
0
votes
2answers
74 views

require_auth() not working as expected

I adapted the hello contract, expanding with require_auth() and added an additional account oliver that should be able to execute the action hashin on behalf of the contract owner doctest1. I adjusted ...
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?
0
votes
1answer
21 views

A way to decrease power of active and owner keys of account?

I'm reading this article: https://developers.eos.io/eosio-nodeos/docs/accounts-and-permissions It's allowed to add many owners to single EOS account, right? It's allowed to have many active keys for ...
0
votes
2answers
39 views

Referring to permissioned account within contract code?

I've created a table within a contract where I want to store user information. the .emplace() method's first parameter specifies the "scope" (I guess) for data to be stored and thus the user account ...
2
votes
2answers
99 views

Setting a key to NULL

Is it possible to change they key for a permission to an EOS public key equivalent of NULL? Such that you could in essence stop that permission from being used in the future? If so, what would be the ...
2
votes
1answer
90 views

How to remove a key from account permissions?

When I imported eos account into Exodus wallet it automatically updated my account permissions and added a second active key. I want to remove this key from my account. Does anyone know how? ...
1
vote
1answer
41 views

In Eosbetdice contract, in the transfer action, why it is able to emplace a new row in this table?

In Eosbetdice contract, https://gitlab.com/EOSBetCasino/eosbetdice_public/blob/master/EOSBetDice.cpp#L193 The code of the contract in this line should be "eosio.token". I wonder why it doesn't get "...
0
votes
1answer
26 views

How much does it cost to add a new permission to an account?

When adding a new key pair to an existing account, how much RAM, CPU, and NET is required?
1
vote
1answer
132 views

Using transfer to send tokens within a smart contract results in “unable to find key”

This is my example code deployed on myaccount #include <eosiolib/eosio.hpp> #include <eosiolib/print.hpp> #include <eosiolib/currency.hpp> using namespace eosio; class ...
2
votes
1answer
47 views

How to auth the issue permission to another contract?

I created a token "ABC" from account "tokenabc" and deployed a airdrop contract "airdroptoken". And I hope that everyone who transfers EOS token to this contract will get some airdrop token "ABC". ...
2
votes
1answer
263 views

How can multisig trigger an action in contract other than eosio.token contract?

Other than eosio.token contract how can we call the inline actions in contract from multisig contract. For example, I have a contracts namely mltisigmetup(with action meetup). Now I need a ...
3
votes
1answer
176 views

Issue setting permissions for use of eosio.token in smart contract

I have an action in a smart contract called submanager that I want to make use of the transfer action from eosio.token (I'm using eosio.cdt v1.3). ACTION subscribe(name from, name to, asset quantity,...
1
vote
2answers
60 views

Confused about active and owner type accounts. What's a good example for a lay person to understand?

I read the documentation on active vs owner type accounts: Authorization and Permissions Permissions are arbitrary names used to define the requirements for a transaction sent on behalf of ...
2
votes
1answer
74 views

How to setup action access control?

Let's say contract-A has a couple of actions defined. If access to one of the contract-A's action, say action1(), needs to be controlled on account basis, how to do it? For example, only few ...
1
vote
1answer
22 views

What Data ownership really is in EOS?

All data of transactions can be view live as EOS is public , suppose i made a transaction on EOS block-chain this transaction belong to me but still people can see it. Here is my Question how this ...
1
vote
1answer
315 views

How do permissions on deferred transactions work?

I'm playing around with deferred transactions and encountered an oddity. Say, we have a contract deployed on contract, and an account account. contract has contract@eosio.code as part of its active ...
1
vote
3answers
95 views

I want to have permissioned data access over eos

Is it possible to have permissioned data access? Suppose I am having a multi_index table and whoever adds data to that table only can access the data because I am having a table storage and one ...
1
vote
1answer
172 views

Allow users to withdraw their tokens

In my contract I have an action which is supposed to allow users to collect the tokens they have accumulated. To do this I use: void transfer_token(account_name receiver, asset quantity, std::string ...
2
votes
4answers
273 views

Error in eosjs account creation on localnet

I am trying to create an account using eosjs in node.js. I am using : eos = Eos({keyProvider}); eos.transaction(tr => { tr.newaccount({ creator: 'eosio', name: '...
1
vote
1answer
62 views

how can I implement recovery key thing in eos private network?

There are two keys associated with wallet 1st active and 2nd owner key. What if I forget this keys and want to recover how can I do that on a private network?
7
votes
1answer
461 views

Can we add the permission to access the table?

I know how to declare ,initialize and get,set values in a table .My question is Can we add permission to access the table to a particular user inside our smart contract ?
2
votes
1answer
97 views

Advanced Account Permissions

Is it possible to configure permissions to protect an accounts EOS balance with one key (held in cold storage) while allowing tokens that are getting airdropped to this account to be transferred out ...
8
votes
2answers
610 views

Can we set permission using eosjs?

Using cleos, we can set the permissions like this: cleos set account permission <your-account> active '{"threshold": 1,"keys": [{"key": "<your-key>","weight": 1}],"accounts": [{"...
4
votes
1answer
200 views

How to create a separate EOS permission for voting using cleos

The goal is to have a new account permission called 'vote' that I can use for voting. If my key for that permission gets compromised I can simply replace it using my active permission. In the meantime ...
3
votes
1answer
409 views

Smart contract call - Error 3090004: Missing required authority

I'm getting this error: "Error 3090004: Missing required authority" when I try to call contract method. Jungle testnet is used. That is the method: //@abi action void add(account_name ...
3
votes
1answer
274 views

Getting an unknown key error while transfer some EOS form one account to another

I have written an action transfer in my contract which is as below // @abi action void second::transfer( account_name from, account_name to, asset ...
3
votes
1answer
360 views

Is it possible to call “updateauth” to change account keys from within a smart contract?

I am trying to write a smart contract that changes the keys of an account (not itself). The transaction will be of course be authorized by the account for which the keys are changing. I feel like it ...
1
vote
0answers
90 views

Why eosio.msig must be privileged account in boot sequence?

I understand the process that eosio's permissions are changed to eosio.prods which represents all BPs. But I cannot understand why we need to make eosio.msig a privileged account. Could you explain ...
3
votes
3answers
129 views

How does one prevent smart contracts from taking all your tokens, when you give them your auth?

Suppose you are a malicious smart contract developer and embedded an inline transaction in your smart contract that calls eosio.token::transfer 100 eos from the caller's account to your account. An ...
3
votes
1answer
584 views

How to get accounts info in smart contract

How can I get accounts info in a smart contract? Or if given a public key and account_name, is there any way can verify that account has this public key in a certain permission?
2
votes
1answer
632 views

How to call action of another contract within a contract?

If I'm right then to call the event of another contract, I need to configure the permissions (allow the call). For example, I have contract aliceclass: class aliceclass : public contract { public: ...
0
votes
1answer
273 views

How to link permission to action?

I created a publish permission, and I want to this permission can only execute the publish action in my tweet contract. How to link the permission to the action?
2
votes
2answers
1k views

How to call an action within the contract with custom permissions?

Here is my code: void play(account_name player, asset amount) { require_auth(player); //The part that is throwing the error action { permission_level{player, N(active)}, //Using the ...
2
votes
1answer
104 views

custom permission can't sign contract 309005

Using this permission: increment(){ /* code */ require_auth(permission_level{_self, inc}); } for an account that has the following permissions permissions: owner: EOS... active: EOS.....
5
votes
2answers
366 views

Error 3090003 when calling a contract from another contract

I have deployed contracts hello and callhello, where callhello makes a call to hello, which in turn prints an output. However, i'm not getting the result I'm hoping for cleos push action callhello ...