Skip to content

JSON-RPC远程过程调用协议 ​

本章节定义JSON-RPC协议的数据结构(Remote Procedure Call Protocol)。

所有RPC请求与响应都使用JSON格式,并遵循此协议。

JSON-RPC请求协议 ​

参数名参数类型是否必填参数描述
_idint是请求ID
_methodstring是RPC方法名
argsjson对象否RPC参数

JSON-RPC响应协议 ​

参数名参数类型是否必填参数描述
_idint是响应ID
_methodstring是RPC方法名
_statusstring否RPC调用状态
_argsjson对象否RPC返回参数

相关链接

JSON-RPC协议,参考自中国电子口岸E-Port的USB-Key