scatter交易missing required accounts

概述:

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

1
Missing required accounts, repull the identity

解决:

需要添加权限选项{ authorization: [account.name@account.authority] },比如 EOS 转账交易:

1
2
3
4
5
6
7
8
9
eos.contract('eosio.token').then(contract => {
contract.transfer(
'fromaccount1',
'toaccount111',
'1.0000 EOS',
'test',
{ authorization: ['fromaccount1@active'] }
);
});
打赏
  • © 2016-2021 留叶
  • Powered by Hexo Theme Ayer
    • PV:
    • UV:

请我喝杯咖啡吧~

支付宝
微信