{"id":560,"date":"2023-07-15T08:31:03","date_gmt":"2023-07-15T00:31:03","guid":{"rendered":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/rpc-method-call-specification\/"},"modified":"2023-07-15T08:34:06","modified_gmt":"2023-07-15T00:34:06","slug":"rpc-method-call-specification","status":"publish","type":"docs","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/rpc-method-call-specification\/","title":{"rendered":"RPC Method Call Specification"},"content":{"rendered":"\n<p>Application access through http:\/\/localhost: [port]\/Submit the request, please refer to the JSON-RPC reference specification &#8220;JSON-RPC over HTTP&#8221; when calling <a href=\"https:\/\/www.jsonrpc.org\/historical\/json-rpc-over-http.html\">https:\/\/www.jsonrpc.org\/historical\/json-rpc-over-http.html<\/a> .<\/p>\n\n\n\n<p>The body content of the request submitted by the program is a JSON object, usually in the format:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"method\":\"name\",\n  \"params\":&#91; ],\n  \"id\":xxx\n}<\/code><\/pre>\n\n\n\n<p>Among them,<\/p>\n\n\n\n<p>method: The name of the RPC method being called.<\/p>\n\n\n\n<p>params: The incoming parameters of the method. If no parameters are passed in, &#8216;[]&#8217; needs to be passed in.<\/p>\n\n\n\n<p>Id: RPC call procedure identifier. An integer value, customized by the application, will be returned with the processing result.<\/p>\n\n\n\n<p>The parameter params passed in are divided into mandatory and optional parameters. In the specifications of this document,&lt;&gt;represents mandatory parameters, and [] represents optional parameters. For example:<\/p>\n\n\n\n<p><strong>&lt;amount> [minconf=1] [comment] [comment-to]<\/strong><\/p>\n\n\n\n<p>Among them, amount is an optional parameter, while minconf, comment, and comment to are all optional parameters. Where minconf=1 indicates that minconf defaults to 1<\/p>\n","protected":false},"featured_media":0,"parent":556,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-560","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":1,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/560\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/560\/revisions\/562"}],"up":[{"embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/556"}],"next":[{"title":"Glossary","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/glossary\/","href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/563"}],"prev":[{"title":"RPC access interface","link":"https:\/\/www.paralism.com\/info\/docs\/paralism-node-rpc-interface\/rpc-access-interface\/","href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/docs\/557"}],"wp:attachment":[{"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.paralism.com\/info\/wp-json\/wp\/v2\/doc_tag?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}