Ontology Developer Center
DISCOVERCOMMUNITYSUPPORT
  • Introduction
  • Discover Ontology
  • Getting Started
  • Glossary
  • Decentralized Identity and Data
    • ONT ID
      • Decentralized Identifiers
        • Method Specification for Ontology
        • Method Specification for Ethereum
        • Method Specification for BSC
      • Verifiable Credentials
        • Anonymous Credentials
      • ONT Login
        • Scenarios
        • Protocol Specification
        • Front-end JavaScript SDK
          • Integration and Usage
          • API Reference
        • Front-end UI SDK
          • Integration and Usage
          • API Reference
        • Back-end Go SDK
          • Integration and Usage
          • API Reference
        • Back-end Java SDK
          • Integration and Usage
          • API Reference
      • ONT TAG
        • Workflow
        • API Reference
      • Mercury
      • OScore
    • DDXF
      • Components and Interfaces
      • GREP
      • Overall Scheme
      • Solutions
        • Marketplace
          • Deployment
          • Scenarios
          • SaaS Tenant
          • Java SDK
        • Data Storage
          • Deployment
          • Java SDK
        • Resource Auditor
        • Offline Judge
      • Use Cases
        • E-Shops
  • ONTOLOGY ELEMENTS
    • Smart Contracts
      • Types of smart contracts
    • Token Protocols
    • Consensus Mechanism
    • Ontology Oracle
      • Oracle Process Flow
  • GUIDES & TUTORIALS
    • Development Guides
      • dApp Development
        • Using the dAPI
        • Data Synchronization
      • Smart Contract Development
        • EVM Contract
          • Development Environment and Tools
          • Wallet Setup
          • Contract Development
          • How to Deploy a Smart Contract with GetBlock
        • NeoVM Contract
          • Development tools and environment
          • Launching the IDE
          • Writing and editing program logic
          • Deploying and testing on private net
        • WASM Contract
          • Development Environment
          • Project Initiation - Hello World
          • Creating your own project
          • Development using SmartX
          • Runtime API
          • Contract Fundamentals
          • Inter-contract Interaction
          • Developing Contracts in C++
        • Publish Contract Source Code
    • Integration Guides
      • dApp Integration
        • dAPI Integration
          • Chrome Plugin
          • Mobile wallet dApp
          • QR code mechanism
          • Wake call mechanism
        • Cocos 2D-x
        • Unity 3D applications
      • Mobile Wallet Integration
        • SDK integration
        • dAPI Integration
          • In-wallet applications
          • QR code mechanism
          • Wake call mechanism
        • Stake
      • Using ONT ID
      • Exchange Integration
        • Exchange Docking Guide
        • Exchange API
      • Ontology for dApp Stores
    • EVM & Token Decimals Upgrade
  • ONTOLOGY NODE
    • Abstract
    • Node Deployment
      • Standard Node
      • Rosetta Node
    • Interacting with a Public Node
  • DEVELOPER TOOLS
    • dApp Development Framework
      • Punica CLI
      • Punica boxes
      • Solo Chain
    • IDE
    • APIs
      • HTTP API
        • Restful
        • WebSocket
        • Remote Procedure Call (RPC)
      • Explorer v2 API
        • Block
        • Address
        • Contract
        • Token
        • Transactions
        • ONT ID
        • Summary
        • Node
      • Native Token API
        • ONT Contract API
        • ONG Contract API
      • ONT ID Contract API
      • Web3 API
      • OScore Open API
      • Rosetta Node API
        • Data API
        • Construction API
      • DToken Contract API
      • DDXF
        • Marketplace Contract API
        • Storage API
      • Governance API
    • Digital Wallet
      • Chrome Plugin provider
      • Chrome Plugin dAPI
      • Mobile version provider
      • Mobile version dAPI
    • SDKs
    • Signing Server
      • Installation
      • API reference
  • COMMUNITY
    • Ecosystem Programs
    • Community Libraries
    • Community Events
    • Community Channels
    • Core Contributors
  • SUPPORT
    • FAQ
      • Basic blockchain concepts
      • Ontology Nodes
      • Ontology token protocols
      • Smart contracts
      • SDKs and APIs
    • Contact Us
Powered by GitBook
On this page
  • Using public nodes
  • Polaris TestNet
  • Ontology MainNet

Was this helpful?

  1. DEVELOPER TOOLS

APIs

Public APIs for data exchange

PreviousIDENextHTTP API

Last updated 8 months ago

Was this helpful?

The public APIs made available by Ontology serve as communication bridges between dApps and nodes.

The APIs provide methods that can be used to fetch data from the chain using various parameters such as user ONT ID, transaction hash, block height etc.

There are two different APIs available publicly for developers to start using:

  1. HTTP API - RPC interface, Restful interface, Websocket interface

  2. Explorer API

Both these APIs are used to fetch data from the chain, but there are slight differences between the two, described in respective sections.

Generally speaking, it is a very tedious task for developers to run and maintain a node, but also a necessity since it is required for testing before deployment on the MainNet. Thus, to make things simpler for developers, Ontology provides public test nodes all of which use the RPC, Restful and Websocket API with default ports, thereby allowing developers to test their smart contracts and business logic.

Using public nodes

All the nodes supportRPC, RESTful, and WebSocket APi calls, and use default port numbers.

HTTPS is supported on port 10334 of the Polaris TestNet node and Ontology MainNet node .

Polaris TestNet

The public TestNet nodes are:

Ontology MainNet

The public MainNet nodes are :

When working on the TestNet, you'll need TestNet ONG, which can be applied for .

A private node can also be set up on the local machine. This can be done by directly compiling and running the , but for the convenience of developers, Ontology provides a method to directly download and run a private node. Please follow link to find the guide.

Follow link to navigate to the ONT ID public API.

To find out how to deploy your own Ontology node follow link.

http://polaris1.ont.io
http://dappnode1.ont.io
http://polaris1.ont.io
http://polaris2.ont.io
http://polaris3.ont.io
http://polaris4.ont.io
http://polaris5.ont.io
here
http://dappnode1.ont.io
http://dappnode2.ont.io
http://dappnode3.ont.io
http://dappnode4.ont.io
source code
this
this
this