In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the ways to use omni core api". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the ways to use omni core api"?
Omni Core is a branch of the core of Bitcoin, which implements a new Omni protocol layer on top of the Bitcoin protocol. So Omni Core's API interacts in the same way as the Bitcoin core, with the addition of a few additional RPC calls related to Omni protocol features.
All bitcoin core functions are retained in Omni Core, and the default PRC port is still 8332. If you want to run both Omni Core and Bitcoin cores (for example, using different data directories), you need to use the-rpcport option to specify a different listening port.
All commands can be displayed using help, and help information for specific commands can be viewed using help.
The JSON-RPC API extended by Omni Core is divided into different groups:
Deal creation: create and broadcast api related to omni deal
Data query: query omni ecological information related api
Naked transaction management: omni naked transaction creation or decoding related api
Poundage management: get omni poundage information related api
Configuration management: setting api related to omni kernel parameters
1. Omni api-deal creation
Deal creation API uses to create and broadcast transactions for the Omni protocol and returns a hash of broadcast transactions.
Omni_send: create and broadcast a simple transaction.
Omni_senddexsell: hang or update sales orders in traditional distributed OMNI/BTC exchanges.
Omni_senddexaccept: create and broadcast a deal order.
Omni_sendissuancecrowdsale: create a new public token
Omni_sendissuancefixed: create a token with a fixed supply
Omni_sendissuancemanaged: create a new token with adjustable supply
Omni_sendsto: create and broadcast a transaction sent to the owner
Omni_sendgrant: issue or authorize tokens
Omni_sendrevoke: recycling managed tokens
Omni_sendclosecrowdsale: manually shut down a mass sale
Omni_sendtrade: hang a transaction order in a distributed token exchange
Omni_sendcanceltradesbyprice: cancel fixed-price orders on distributed token exchanges
Omni_sendcanceltradesbypair: cancels all pending orders for specified trading pairs on a distributed token exchange
Omni_sendcancelalltrades: cancel all pending orders on distributed token exchanges
Omni_sendchangeissuer: the issuer who modifies the specified token
Omni_sendall: sends all available tokens in the specified ecosystem to the recipient
Omni_sendenablefreezing: enable address freezing for a centrally managed asset
Omni_senddisablefreezing: disable address freezing for a centrally managed asset
Omni_sendfreeze: freezes specific addresses that specify centralized management tokens
Omni_sendunfreeze: unfreeze a centrally managed token at the specified address
Omni_sendrawtx: broadcast a naked transaction at the Omni layer
Omni_funded_send: create and send a simple top-up transaction
Omni_funded_sendall: creates and broadcasts a deal that transfers all available delegates to a receive address in the specified ecosystem
2. Omni api-data query
The data query API is used to obtain the status information of the Omni ecosystem.
Omni_getinfo: returns various status information of nodes and protocols
Omni_getbalance: returns the token balance of the specified address and asset
Omni_getallbalancesforid: returns the token balance of a specified cash or asset
Omni_getallbalancesforaddress: returns all token balances at the specified address
Omni_getwalletbalances: returns the balance information of all tokens for the entire wallet
Omni_getwalletaddressbalances: returns all token balance information for each wallet address
Omni_gettransaction: get the details of the specified Omni deal
Omni_listtransactions: returns the wallet transaction list, which can be filtered by address or block
Omni_listblocktransactions: lists all omni transactions within the specified block
Omni_listpendingtransactions: returns the list of omni transactions waiting for confirmation in the memory pool
Omni_getactivedexsells: returns the current active bid in the distributed exchange
Omni_listproperties: list all tokens or smart assets
Omni_getproperty: returns the details of the specified token or smart asset
Omni_getactivecrowdsales: list the crowdsale of current activity
Omni_getcrowdsale: returns information about specified mass sales activities
Omni_getgrants: returns information about manageable tokens granted and reclaimed
Omni_getsto: returns the specified details of the transaction sent to the owner and the recipient information
Omni_gettrade: gets the transaction details corresponding to a specified order in a distributed token exchange
Omni_getorderbook: returns a list of active delegates in a distributed token exchange
Omni_gettradehistoryforpair: get the trading history of a designated market on a distributed token exchange
Omni_gettradehistoryforaddress: returns the order history information of the specified address in the distributed transaction
Omni_getactivations: returns pending and completed feature activation
Omni_getpayload: get the payload content of an Omni transaction
Omni_getseedblocks: returns a list of blocks containing Omni transactions for use in seed block filtering
Omni_getcurrentconsensushash: returns the consensus hash of the current block
3. Omni api-Naked transaction Management
Naked transaction API is used to decode or create Omni naked transactions.
You need to sign the naked transaction using signrawtransaction, and then broadcast the naked transaction using sendrawtransaction.
Omni_decodetransaction: decodes the specified Omni transaction
Omni_createrawtx_opreturn: add an op-return operation payload to the deal
Omni_createrawtx_multisig: add bare-multisig operation payload to the deal
Omni_createrawtx_input: add an input to the deal
Omni_createrawtx_reference: add a reference output to the deal
Omni_createrawtx_change: add a change output to the transaction
Omni_createpayload_simplesend: create a payload for simply sending transactions
Omni_createpayload_sendall: create a payload to send a full transaction
Omni_createpayload_dexsell: create a payload for submitting, updating, or canceling entrustment orders in traditional distributed OMNI/BTC exchanges
Omni_createpayload_dexaccept: create a load for accepting a delegated order
Omni_createpayload_sto: create a payload to send to the owner transaction
Omni_createpayload_issuancefixed: create a payload for issuing new fixed supply tokens
Omni_createpayload_issuancecrowdsale: create a new token for mass sale
Omni_createpayload_issuancemanaged: create a payload for quantitative manageable token issuance
Omni_createpayload_closecrowdsale: create a payload for manually shutting down mass sales
Omni_createpayload_grant: create a payload for issuing or granting manageable tokens
Omni_createpayload_revoke: create a payload for reclaiming manageable tokens
Omni_createpayload_changeissuer: create a load to modify the token issuer
Omni_createpayload_trade: create a payload for issuing a proxy order in a distributed token exchange
Omni_createpayload_canceltradesbyprice: create a payload for canceling a specified price order in a distributed token exchange
Omni_createpayload_canceltradesbypair: create an order payload for canceling a specified trading pair in a distributed token exchange
Omni_createpayload_cancelalltrades: create an order payload for canceling all specified trading pairs in a distributed token exchange
Omni_createpayload_enablefreezing: create a payload to enable address freezing on centrally managed assets
Omni_createpayload_disablefreezing: create a load that disables address freezing for centrally managed assets
Omni_createpayload_freeze: create a payload to freeze centrally managed asset addresses
Omni_createpayload_unfreeze: create a payload to unfreeze centrally managed asset addresses
4. Omni api-handling fee management
Poundage related API is used to obtain data about poundage system and poundage distribution.
Omni_getfeecache: gets the total handling fee of the current cache
Omni_getfeetrigger: returns the number of triggers for cache fee distribution
Omni_getfeeshare: returns the percentage of the handling address when the distribution is triggered
Omni_getfeedistribution: returns the data of the specified historical distribution
Omni_getfeedistributions: returns historical distribution data for the specified asset
5. Omni api-configuration Management
The configuration management API is used to modify Omni kernel settings.
Omni_setautocommit: sets the flag for whether to automatically submit and broadcast transactions
Thank you for your reading, the above is the content of "what is the use of omni core api?" after the study of this article, I believe you have a deeper understanding of what the use of omni core api has, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.