scatter交易missing required accounts

概述:

使用scatter js sdk发起一笔交易,请求scatter确认时,出现如下错误提示:

Missing required accounts, repull the identity

解决:

需要添加权限选项{ authorization: [[email protected]] },比如 EOS 转账交易:

eos.contract('eosio.token').then(contract => {
    contract.transfer(
        'fromaccount1',
        'toaccount111',
        '1.0000 EOS',
        'test',
        { authorization: ['fromaccount1@active'] }
    );
});

你可能感兴趣的:(区块链)