{% extends "global/layout.html" %} {% block title %}{{ _('I2PControl - Remote Control Service') }}{% endblock %} {% block lastupdated %}2022-01{% endblock %} {% block accuratefor %}0.9.52{% endblock %} {% block content %}

{% trans itoopie='http://'+i2pconv('itoopie.i2p')+'/' -%} I2P enables a JSONRPC2 interface via the plugin I2PControl. The aim of the interface is to provide simple way to interface with a running I2P node. A client, itoopie, has been developed in parallel. The JSONRPC2 implementation for the client as well as the plugin is provided by the java libraries JSON-RPC 2.0. A list of implementations of JSON-RPC for various languages can be found at the JSON-RPC wiki. {%- endtrans %}

{% trans %}I2PControl is by default listening on https://localhost:7650{% endtrans %}

{% trans %}API, version 1.{% endtrans %}

{% trans -%} Parameters are only provided in a named way (maps). {%- endtrans %}

{% trans %}JSON-RPC 2 format{% endtrans %}

{{ _('Request:') }} {% highlight lang='json' %} { "id": "id", "method": "Method-name", "params": { "Param-key-1": "param-value-1", "Param-key-2": "param-value-2", "Token": "**actual token**" }, "jsonrpc": "2.0" } {% endhighlight %} {{ _('Response:') }} {% highlight lang='json' %} { "id": "id", "result": { "Result-key-1": "result-value-1", "Result-key-2": "result-value-2" }, "jsonrpc": "2.0" } {% endhighlight %}

{% trans %}Implemented methods{% endtrans %}

* {% trans %}denotes an optional value.{% endtrans %}

** {% trans %}denotes a possibly occuring return value{% endtrans %}

{% trans %}Error codes{% endtrans %}

{% endblock %}