NIS2-API is a REST API that combines HTTP and WebSockets to perform read and write actions in the NEM blockchain through NEM Infrastructure Server.
Interacting with the API¶
The configuration presented is NOT intended to be used on the public network. These are the parameters used for the Catapult Testnet version (MIJIN_TEST).
NIS uses port
3000 to communicate with its clients. It accepts both HTTP
Assuming that the NIS is running locally, HTTP GET requests can be executed from a browser and have the form:
http://localhost:3000/<path-to-API-request> for example:
HTTP PUT and POST requests use JSON structures in the request body to supply data to NIS.
Both request types return data (if any is returned) using JSON structures.
We recommend using one of the following tools to interact with NIS2-API, especially for PUT and POST methods.
This kind of request usually cannot be executed from within the browser unless you use a plugin which enables you to do it.