Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 417 Bytes

OnlineContext.md

File metadata and controls

18 lines (14 loc) · 417 Bytes

线上环境一些基础数据获取

  • 相关对象
const ConfigManager = require('../lib/config_manager.js')
const NebUtil = require('../lib/neb_util.js')
  • 获取某合约地址的发布地址
let address = ConfigManager.getOnlineContractAddress(MyContract)
  • 获取某地址的账户信息
let accountInfo = await NebUtil.testnet.getAccountInfo(address)