How to male JSON-RPC API call using Rest based SAP PO Adapter?

+2 votes
Hi Team,

We are able to call Multichain provided JSON-RPC API from HTTP client.

Like if we are doing a "getinfo" call then within method we will pass"getinfo" as a Data Payload.

Is there any way to pass the same as resource?

Like http://ip address:port/getinfo

As our SAP adapter is tightly coupled with REST Services it is unable to handle "HTTP BODY" parameter.
asked Sep 12, 2018 by anonymous

1 Answer

0 votes
I'm afraid this is not possible because MultiChain uses standard JSON-RPC formatting for its requests, and that does not allow the method parameter to be specified in the URL.

Have you considered rolling a small proxy in front of the MultiChain API that will allow you to specify the method (and perhaps parameters) differently, and maps these to a JSON-RPC request? Using something like Python it should only require a few lines of code.
answered Sep 12, 2018 by MultiChain