EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.28k stars 3.6k forks source link

[push_transaction error] '{"code":401,"message":"UnAuthorized","details":"signatures do not satisfy declared authorizations (3030002)\nTransaction declares authority '{\"account\":\"inita\",\"permission\":\"active\"}', but does not have signatures for it.\n\n"} #1787

Closed luoxianjiao closed 6 years ago

luoxianjiao commented 6 years ago

when i use "newaccount" method of eosjs ,it occur errors as title,my param is eos.newaccount({ creator: 'inita', name: 'ylm', owner: initaPublic, active: initaPublic, recovery: 'inita', deposit: '1 EOS' })

filipealonso commented 6 years ago

You need to use inita's key to sign the transaction. Check config.ini for the key and follow the "Complete example" section here https://github.com/EOSIO/eosjs#contract