I want to make a transaction with Scatter but I'm getting this error

function callContract(){

    const account = scatter.identity.accounts.find(x => x.blockchain === 'eos');
    const transactionOptions = { authorization:[`${account.name}@${account.authority}`] };

    eos.transaction(['mycontractyo'], push => {
        push.mycontractyo.reg('somestring', '1234567890123456')
    .then(trx => console.log('trx', trx))
    .catch(err => console.error(err))     

The Error I get is

code: 402
isError: true
message: "You are trying to sign a request with an account that isn't currently linked or doesn't exist in the user's Scatter"
type: "account_missing"

I can't figure out where to pass in account or transactionOptions

  • As the error says, did you imported the required account into scatter? – Blockchain Experts Oct 30 '18 at 3:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.