Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the knowledge of Tendermint block chain RPC API development?

2025-02-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 is the knowledge of Tendermint blockchain RPC API development". The content of 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 is the knowledge of Tendermint blockchain RPC API development?"

Configuration: you can use the configuration file $TMHOME/config/config.toml or the command line parameter-- rpc.X, to adjust the rpc function of the terdernmint node.

Listening address: the default rpc listening address is tcp://0.0.0.0:26657. To set it to another address, you can modify the laddr configuration parameters.

CORS: to enable CORS, you can configure the following parameters:

Cors_allowed_origins

Cors_allowed_methods

Cors_allowed_headers

String parameters: if the calling parameter of RPC API requires a string or byte array, you can pass a quoted string, such as "abc" or the hexadecimal representation of the 0x prefix, such as 0x616263.

POST request: the JSONRPC request can be sent to the RPC root access point in the POST mode of the HTTP protocol, that is, http://localhost:26657/.

WebSocket requests: JSONRPC requests can use the websocket channel. The websocket access node of the Tendermint node is / websocket, for example: localhost:26657/websocket. Asynchronous RPC requests such as subscribe and unbsubscribe are valid only for websocket.

If you want to quickly grasp the development of blockchain applications, Huizhi's series of blockchain application development tutorials are recommended, which cover a variety of blockchain development languages such as Bitcoin, Ethernet Square, eos, Super account fabric and tendermint, as well as java, c #, go, nodejs, python, php, dart and other development languages.

Query API

ABCIInfo-get application description information

ABCIQuery-query application data

Block-get specified chunk data

BlockResults-gets the ABCI result of the specified chunk

BlockchainInfo-query block chain

Commit-query submitted data

ConsensusParams-query consensus parameters

ConsensusState-query consensus status

DumpConsensusState-Export consensus statu

Genesis-get the Genesis document

Health-query node health status

NetInfo-query the network status of nodes

NumUnconfirmedTxs-query for unconfirmed transactions

Status-query Tendermint status

Tx-get the specified deal

TxSearch-query transactions

UnconfirmedTxs-get unconfirmed deal

UnsafeDialPeers

UnsafeDialSeeds

Validators-returns the verification node set

Transaction API

BroadcastTxAsync-Asynchronous broadcast transaction

BroadcastTxCommit-broadcast the deal and wait for the result

BroadcastTxSync-Asynchronous broadcast transaction

Real-time event API

Subscribe-subscribe to event notifications

Unsubscribe-Unsubscribe the specified event

UnsubscribeAll-Unsubscribe all events

Thank you for your reading, the above is the content of "what is the knowledge of Tendermint blockchain RPC API development". After the study of this article, I believe you have a deeper understanding of what Tendermint blockchain RPC API development knowledge 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report