Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [permissions]

The tag has no usage guidance.

1
vote
2answers
17 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 ...
1
vote
1answer
29 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
13 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
0answers
31 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
37 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
57 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
75 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: '...
0
votes
1answer
38 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
272 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
49 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 ...
5
votes
1answer
146 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
67 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 ...
2
votes
1answer
131 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
65 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 ...
1
vote
0answers
51 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 ...
0
votes
0answers
42 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
81 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
198 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
233 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
85 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
392 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
72 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
237 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 ...
1
vote
1answer
111 views

Custom permission error 309004/309005

I'm trying to create a custom permission and push an action on my contract, but experience problems with authorization. Alice.acc is the account where the contract is set to. Giveprm is the custom ...
3
votes
1answer
256 views

How to set up chain of permission levels for a user?

This is a great answer that describes the ways you can handle user permission levels for inline actions. According to that answer: This can be done a few ways (ordered from most risky for the user ...
1
vote
3answers
135 views

I have an error when deploying bios contract

Please help me to solve a problem. I recently updated eosio to v1.0.5 and got an error while deploying bios contract. I had no such problems neither with version v1.0.2 nor with v1.0.1. I followed ...
4
votes
1answer
368 views

“dice” contract “withdraw” action problem

I wonder if anyone experienced a similar problem and managed to resolve it. I'm testing the "dice" contract on my local tesnet. I've setup up all necessary contracts and could deposit assets to the "...
1
vote
2answers
250 views

What is the purpose for each of the eosio.* system accounts?

There are several eosio.* accounts - also referred to as system accounts - described in the bios sequence tutorial: eosio.bpay eosio.msig eosio.names eosio.ram eosio.ramfee eosio.saving eosio.stake ...
3
votes
2answers
780 views

How can you add or change the keys for the owner of an account?

How can I change the owner of an account? Can an account have more than one owner? I see that active and owner are groups so theoretically there can be multiple keys in either group. But how can I ...
0
votes
1answer
96 views

How to do multi authorization?

I have a question, assume an account named user with a permission @active, and is authorized to bob@active and alice@active, if I want to send a transfer action, do I need all the authorization in my ...
2
votes
1answer
725 views

How to change active key for an account?

My active and owner keys are the same. I want to change active key to be different from owner, for safety. What command should I use?
1
vote
0answers
92 views

Exception when updating permission in EOS 1.0.1 with eosjs 14.1

The code below will produce the following error message: TypeError: Cannot read property 'threshold' of undefined authority.threshold updateauth.auth action.data transaction.actions index.js:121 ...
4
votes
1answer
168 views

How can I create a custom permission within a contract and limit it to certain actions?

For example, say I wanted to create a custom permission called delegatee. An account with this permission would be only permitted to preform certain actions within my contract. Is this possible as of ...