源代码仓库地址:
https://github.com/bcskill/eosjs-name
演示地址
Try on run-kit https://npm.runkit.com/eosjs-account-name
测试代码
// name To Uint64
const eosjsAccountName = require("eosjs-account-name")
const n = eosjsAccountName.nameToUint64('eosio');
console.log('eosio to uint64: ' + n);
console.log('uint64 to name: ' + eosjsAccountName.uint64ToName(n));
// Uint64 to name
const uint64 = '6138663577826885632';
const name = eosjsAccountName.uint64ToName(uint64);
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/952.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!