GetScatter / ScatterWebExtension

Extension that allows you to sign transactions with your private keys securely from within the browser without ever exposing them.
MIT License
366 stars 127 forks source link

How to call an action that required `eosio.code` authorization? #131

Closed Falci closed 5 years ago

Falci commented 6 years ago

My action will move EOS token in the behavior of the user. Locally, I'm setting account permission with:

cleos set account permission user active '{"threshold": 1,"keys": [{"key": "EOS_contract_owner_public_key","weight": 1}],"accounts": [{"permission":{"actor":"contract_owner","permission":"eosio.code"},"weight":1}]}' owner -p user

It's enought to make it work from the command line;

How can I do it using Scatter and EosJS?

nsjames commented 5 years ago

Please add a ticket to eosjs instead, as this is not related to Scatter.

https://github.com/EOSIO/eosjs