try {
let con_account = 'bcskillsurou';
const encodedName = new BigNumber(Eos.modules.format.encodeName("bcskillsurou", false))
console.log(encodedName);
console.log(await rpc.get_table_rows(
{
code:con_account,
scope:con_account,
table:"accounttb",
lower_bound: encodedName,
}));
} catch (e) {
console.log( '\nCaught exception: ' + e);
if (e instanceof eosjs_jsonrpc.RpcError)
console.log( '\n\n' + JSON.stringify(e.json, null, 2));
}
参考
https://eosio.stackexchange.com/questions/813/eosjs-gettablerows-lower-and-upper-bound-on-account-name
issue: https://github.com/EOSIO/eosjs/issues/456
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/758.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!