Coder Social home page Coder Social logo

unsatisfied_authorization - provided keys, permissions, and delays do not satisfy declared authorization about scatterwebextension HOT 4 CLOSED

getscatter avatar getscatter commented on August 23, 2024
unsatisfied_authorization - provided keys, permissions, and delays do not satisfy declared authorization

from scatterwebextension.

Comments (4)

mlockett42 avatar mlockett42 commented on August 23, 2024

I changed the code slightly to include the chainId as per the discussion of this similar issue EOSIO/eosjs#131 and a suggestion from the scatter telegram channel.

However I still get the same error. Code below

function vote_now(e) {
    const network = {
        blockchain:'eos',
        host: chain_addr, 
        port: chain_port, 
        chainId: 'a628a5a6123d6ed60242560f23354c557f4a02826e223bb38aad79ddeb9afbca',
    }

    const requiredFields = {
        accounts:[ network ],
    };

    scatter.suggestNetwork(network).then((result) => {
        scatter.getIdentity(requiredFields).then(identity => {
            const eosOptions = {};
            eos = scatter.eos( network, Eos.Localnet, eosOptions );
             
            eos.contract('eosio', requiredFields).then(c => {
                    c.voteproducer({'voter': identity.accounts[0].name, 'proxy': proxy_name, 'producers': proxy_name != '' ? [] : votes},
                                   { authorization: [identity.accounts[0].name]} )
                        .then((result) => {
                            alert('Your vote was cast successfully');
                            confirming_vote = false;
                            redrawAll();
                        })
                        .catch((error) => {
                            console.error('voteproducer error=', error);
                            alert('eosio.voteproducer returned an error\nmessage:' + error.message);
                        })
.........

from scatterwebextension.

nsjames avatar nsjames commented on August 23, 2024

Put the chain id into the eosOptions, not the network.

from scatterwebextension.

iFrankWu avatar iFrankWu commented on August 23, 2024

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":[{"message":"transaction declares authority '{"actor":"havefun","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms","file":"authorization_manager.cpp","line_number":405,"method":"check_authorization"}]}}

I got the error too.

from scatterwebextension.

yepp4you avatar yepp4you commented on August 23, 2024

The chainId value must be the same value as the nodeos you are trying to connect to.
The chainId value changes according to the genesis value of the chain.
http://domain/v1/chain/get_info or cleos get info

from scatterwebextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.