API Protocol and Messages
Format Description of JSON
All JSON Request body comprises of two portions – the protocol overhead, and the params.
Protocol Overhead
The protocol overhead includes ID, and method.
Params
The params carries the information shared between applications, for the purpose of processing.
Request Structure
{
"jsonrpc":"2.0",
"method":"ledger.admin.request",
"params":{ "x":"y" },
"id":"X"
}
Keys | Description |
---|---|
Method | The method indicates the actions requested. |
Params | Refers to the Request Parameters sent by the User. |
Response Structure
{
"jsonrpc":"2.0",
"result":"XX",
"id":"X"
}
Keys | Description |
---|---|
Result | Refers to the Response Parameters sent in response to User's Request. |