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 Core JSON-RPC API

Omni Core是比特币核心的一个分支,它在比特币协议之上实现了一个 新的Omni协议层。因此与Omni Core的API交互的方式和比特币核心的 方式一样,只是添加了一些额外的Omni协议特性相关的RPC调用。

在Omni Core中保留了所有比特币核心的功能,默认的PRC端口依然是8332。 如果你希望同时运行Omni Core和比特币核心(例如使用不同的数据目录), 那么你需要使用-rpcport <port>选项来指定一个不同的监听端口。

所有命令都可以使用help显示出来,特定命令的帮助信息可以使用help <command>查看。

API清单

Omni Core扩展的JSON-RPC API分为不同的组:

  • 交易创建
  • 数据查询
  • 裸交易
  • 手续费

交易创建API

交易创建API用来创建并广播Omni协议的交易,并返回广播交易的哈希。

  • 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

数据查询API用来获取Omni生态系统的状态信息。

  • 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

裸交易API用来解码或创建Omni裸交易。

需要使用signrawtransaction签名裸交易,然后使用sendrawtransaction广播裸交易。

  • 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

手续费相关API用来获取手续费系统以及手续费分发的相关数据。

  • omni_getfeecache
  • omni_getfeetrigger
  • omni_getfeeshare
  • omni_getfeedistribution
  • omni_getfeedistributions

配置管理API

配置管理API用来修改Omni内核设定。

  • omni_setautocommit