区块链中文技术社区

EOS Configuration 参数详解

Eos = require('eosjs')

// Default configuration (additional options below)
config = {
  chainId: null, // 32 byte (64 char) hex string
  keyProvider: ['PrivateKeys...'], // WIF string or array of keys..
  httpEndpoint: 'http://127.0.0.1:8888',
  expireInSeconds: 60,
  broadcast: true,
  verbose: false, // API activity
  sign: true
}

eos = Eos(config)
logger: {
  log: config.verbose ? console.log : null,
  error: console.error // null to disable
}

关闭所有错误记录: config.logger = {error: null}

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »