Position: Home page » Ethereum » Ethereum jsonrpcapi

Ethereum jsonrpcapi

Publish: 2021-04-19 16:53:22
1. Send according to the standard JSON string format

JSON RPC is a standard
wiki.geekdream.com/specification/json RPC_ 2.0. HTML
here is the official document of 2.0. In addition, the package for parsing needs to be introced
2. jsonrpc = new JSONRpcClient("/ json-rpc"); // Instantiate JSON remote call
3. Unknown_Error
4. jQuery.post(url, [data], [callback], [type]
$.post(" test.php" name: " John" time: " 2pm"});
5. Unknown_Error
6. Security is a permanent topic. For web services based on WSDL and soap, we have WS security to guide the implementation of authentication, authorization, identity management and other security requirements. So, is there a mature specification or implementation framework for restful API? How to ensure the security of restful API
how to control the version of restful API
are the verbs given in the HTTP 1.1 specification sufficient for designing restful APIs? Do you expand your verbs in actual projects? When do you need to expand
What are the most valuable features of jax-rs 2.0 released in May this year for the design of rstful API? What problems are they used to solve
can you recommend a practical restful API development framework for InfoQ readers and explain your reasons for promotion
the http2.0 specification is under development. What are your expectations for it
InfoQ: what is a good restful API? I believe everyone has their own criteria. So, what characteristics do you think a good restful API should have?
7. JSONObject jsonObject = new JSONObject();
Map map = request.getParameterMap();
Iterator<?> it = map.keySet().iterator();
while(it.hasNext()){
String key = (String)it.next();
String[] values = (String[])map.get(key);
jsonObject.accumulate(key, values[0]);
}

String name = jsonObject.getString("userName"); //返回从前台接受的用户名
System.out.println(name); //输出用户名

jsonObject.clear(); // 清空jsonObjec中的数据
jsonObject.put("love" , "足球"); //将足球赋给love这个变量名
out.print(jsonObject); //返回json格式的数据
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750