Interacting with a Public Node
Using the available APIs to interact with public nodes
By default, the
RESTfulinterface listens on
port 20334, the
WebSocketinterface listens on
port 20335, and the
RPCinterface listens on
It is inconvenient for developers to run their own nodes. Therefore, the Ontology blockchain provides the
Polaristest network node and the
Ontologymain network node for developers to use, all supporting
WebSocketcalls, and using the default port number.
HTTPS is supported in
port 10334of Polaris TestNet node http://polaris1.ont.io and Ontology MainNet node http://dappnode1.ont.io.
The public Ontology polaris test network nodes:
The public Ontology main network nodes:
A private node can also be set up on the local machine. This can be done by directly compiling and running the source code, but for the convenience of developers, Ontology provides a method to directly download and run a private node. Please follow this link to find the guide.