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_createrawtx_multisig

omni_createrawtx_multisig调用将bare-multisig操作载荷添加到交易中。

如果没有提供裸交易,调用将创建一个新的交易。

如果数据编码失败,那么交易不会被修改。

调用参数

  • rawtx:要扩展的裸交易,字符串,必需
  • payload:要添加的16进制编码的载荷,字符串,必需
  • seed:用于混淆的种子,字符串,必需
  • payload:赎回地址或公钥,字符串,必需

返回结果

omni_createrawtx_multisig调用返回修改后的交易,16进制编码

示例代码

~$ omnicore-cli "omni_createrawtx_multisig" \
    "0100000001a7a9402ecd77f3c9f745793c9ec805bfa2e14b89877581c734c774864247e6f50400000000ffffffff01aa0a00000 \
    00000001976a9146d18edfe073d53f84dd491dae1379f8fb0dfe5d488ac00000000" \
    "00000000000000020000000000989680"
    "1LifmeXYHeUe2qdKWBGVwfbUCMMrwYtoMm" \
    "0252ce4bdd3ce38b4ebbc5a6e1343608230da508ff12d23d85b58c964204c4cef3"