1. Home
  2. Docs
  3. Paralism Node RPC Interface
  4. RPC Method Call Specification

RPC Method Call Specification

Application access through http://localhost: [port]/Submit the request, please refer to the JSON-RPC reference specification “JSON-RPC over HTTP” when calling https://www.jsonrpc.org/historical/json-rpc-over-http.html .

The body content of the request submitted by the program is a JSON object, usually in the format:

{
  "method":"name",
  "params":[ ],
  "id":xxx
}

Among them,

method: The name of the RPC method being called.

params: The incoming parameters of the method. If no parameters are passed in, ‘[]’ needs to be passed in.

Id: RPC call procedure identifier. An integer value, customized by the application, will be returned with the processing result.

The parameter params passed in are divided into mandatory and optional parameters. In the specifications of this document,<>represents mandatory parameters, and [] represents optional parameters. For example:

<amount> [minconf=1] [comment] [comment-to]

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

Was this article helpful to you? Yes No