Skip to main content

getversion 方法

获取节点的版本信息。

note

此方法由插件提供,需要安装 RpcServer 插件才可以调用。

调用示例#

请求正文:

{  "jsonrpc": "2.0",  "method": "getversion",  "params": [],  "id": 1}

响应正文:

{    "jsonrpc": "2.0",    "id": 1,    "result": {        "tcpport": 10333,        "wsport": 10334,        "nonce": 1930156121,        "useragent": "/Neo:3.0.3/",        "protocol": {            "addressversion": 53,            "network": 860833102,            "validatorscount": 7,            "msperblock": 15000,            "maxtraceableblocks": 2102400,            "maxvaliduntilblockincrement": 5760,            "maxtransactionsperblock": 512,            "memorypoolmaxtransactions": 50000,            "initialgasdistribution": 5200000000000000        }    }}