EOS js name To Uint64 OR Uint64 to name
源代码仓库地址:
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);