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: 'account1',
owner: pubkey,
active: pubkey
})
With this eos
instance, I am successfully calling the getblock
api. WHile hitting this api, i get the error:
{"code":500,"message":"Internal Service Error","error":{"code":3090003,"name":"unsatisfied_authorization","what":"Provided keys, permissions, and delays do not satisfy declared authorizations","details":[]}}
Error is same on nodeos
console too. I tried some solutions available out there bu they didn't work for me. I am accessing local node running on same system. Please let me know the resolution of this error.