Jump to content
FIBOS社区

Search the Community

Showing results for tags '通证发行'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBOS Club
    • Cross.fo
    • Exchange.fo
    • FIBOS dev
    • Bancor
    • fuli
    • 答疑解惑问题反馈
    • FO Wallet DApp SDK
    • League of Node Heros
    • FOD help
    • FOD HELP
  • club
    • nanjing
    • changsanjiao
    • duolianxinchuang

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. 参考 :如何在 FIBOS 中发行和销毁通证 var FIBOS = require('fibos.js'); var http = require('http'); const foAccount = 'fiboscouncil'; //公开的兑换fo帐号 const fibosMainNetChainId = '6aa7bd33b6b45192465afa3553dedb531acaaff8928cf64b70bd4c5e49b7ec6a'; //FIBOS MainNet 主网chainId const fibosHttpEndpoint = 'http://se-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 //const fibosHttpEndpoint = 'http://sl-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 //const fibosHttpEndpoint = 'http://to-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 //const fibosHttpEndpoint = 'http://ca-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 //const fibosHttpEndpoint = 'http://ln-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 //const fibosHttpEndpoint = 'http://va-rpc.fibos.io:8870'; //FIBOS MainNet 主网RPC地址 const eosMainNetChainId = 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906'; //EOS MainNet 主网chainId const eosHttpEndpoint = 'http://api-mainnet1.starteos.io'; //EOS MainNet 主网RPC地址 const fibosAccount = ""; //你的 FIBOS 账户名 const fibosPubKey = ''; //你的 FIBOS 公钥 const fibosPriKey = ''; //你的 FIBOS 私钥 const eosAccount = ''; //你的EOS账户名 const eosPriKey = ''; //你的EOS active私钥 const eosNum = ''; //购买数量 var fibos_client = FIBOS({ chainId: fibosMainNetChainId, keyProvider: fibosPriKey, httpEndpoint: fibosHttpEndpoint, verbose: true, logger: { log: null, error: null, }, }); // fibos 发行普通通证 通证代号需要大写 let ctx = fibos_client.contractSync("eosio.token"); let r = ctx.excreateSync(fibosAccount, "100000000000.0000 PASS", 0.00, '0.0000 PASS', '0.0000 PASS', '0.0000 FO', { authorization: fibosAccount, }); console.log(r); 昨天才知道,原来发行的 token 名的全称后面是带着账号的,举个例子:fibostst123 可以发行一个 PASS ,fibostst321 也可以发行一个 PASS ,相互之间还可以兑换: //初始化 FIBOS 客户端 ... let account = "fibostest123" let ctx = client.contractSync("eosio.token"); let result = ctx.exchangeSync(account, "1.0000 [email protected]", "0.0000 [email protected]", "exchenge PASS to PASS",{ authorization: account }); 也就是说,抢注 token 名 是没有卵用的 !
×