OmniCore RPC API文档

交易创建API
omni_send omni_senddexsell omni_senddexaccept omni_sendissuancecrowdsale omni_sendissuancefixed omni_sendissuancemanaged omni_sendsto omni_sendgrant omni_sendrevoke omni_sendclosecrowdsale omni_sendtrade omni_sendcanceltradesbyprice omni_sendcanceltradesbypair omni_sendcancelalltrades omni_sendchangeissuer omni_sendall omni_sendenablefreezing omni_senddisablefreezing omni_sendfreeze omni_sendunfreeze omni_sendrawtx omni_funded_send omni_funded_sendall
数据查询API
omni_getinfo omni_getbalance omni_getallbalancesforid omni_getallbalancesforaddress omni_getwalletbalances omni_getwalletaddressbalances omni_gettransaction omni_listtransactions omni_listblocktransactions omni_listpendingtransactions omni_getactivedexsells omni_listproperties omni_getproperty omni_getactivecrowdsales omni_getcrowdsale omni_getgrants omni_getsto omni_gettrade omni_getorderbook omni_gettradehistoryforpair omni_gettradehistoryforaddress omni_getactivations omni_getpayload omni_getseedblocks omni_getcurrentconsensushash
裸交易API
omni_decodetransaction omni_createrawtx_opreturn omni_createrawtx_multisig omni_createrawtx_input omni_createrawtx_reference omni_createrawtx_change omni_createpayload_simplesend omni_createpayload_sendall omni_createpayload_dexsell omni_createpayload_dexaccept omni_createpayload_sto omni_createpayload_issuancefixed omni_createpayload_issuancecrowdsale omni_createpayload_issuancemanaged omni_createpayload_closecrowdsale omni_createpayload_grant omni_createpayload_revoke omni_createpayload_changeissuer omni_createpayload_trade omni_createpayload_canceltradesbyprice omni_createpayload_canceltradesbypair omni_createpayload_cancelalltrades omni_createpayload_enablefreezing omni_createpayload_disablefreezing omni_createpayload_freeze omni_createpayload_unfreeze
手续费API
omni_getfeecache omni_getfeetrigger omni_getfeeshare omni_getfeedistribution omni_getfeedistributions
内核配置API
omni_setautocommit

omni_sendissuancecrowdsale

omni_sendissuancecrowdsale调用创建一个新的众售代币。 Create new tokens as crowdsale.

调用参数

  • fromaddress:发送地址,字符串,必需
  • ecosystem:要创建代币的生态环境代码,数值,1表示主环境,2 表示测试环境,必需
  • type:要创建的代币类型,数值,1表示不可见代币,2表示可见代币,必需
  • previousid:前序代币ID,数值,0表示新的众售,必需
  • category:新代币的分类,字符串,可以是"",必需
  • subcategory:新代币的子分类,字符串,可以是"",必需
  • name:新代币名称,字符串,必需
  • url:新代币的网址,字符串,必需
  • data:新代币的描述信息,字符串,必需
  • propertyiddesired:参与众售的代币ID,数值,必需
  • tokensperunit: 单位代币对应数量,字符串,必需
  • deadline:众售截止事件,数值,必需
  • earlybonus:早鸟奖励比例,数值,必需
  • issuerpercentage:发行方持有比例,数值,必需

返回结果

omni_sendissuancecrowdsale调用返回16进制编码的交易哈希。

示例代码

$ omnicore-cli "omni_sendissuancecrowdsale" \
    "3JYd75REX3HXn1vAU83YuGfmiPXW7BpYXo" 2 1 0 "Companies" "Bitcoin Mining" \
    "Quantum Miner" "" "" 2 "100" 1483228800 30 2