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
  • 1. Get blockchain, latest summary information
  • 2. Get blockchain, tps information
  • 3. Get blockchain, daily summary information
  • 4. Get contract daily summary information
  • 5. Get ONT/ONG total supply

Was this helpful?

  1. DEVELOPER TOOLS
  2. APIs
  3. Explorer v2 API

Summary

APIs to obtain summary details

1. Get blockchain, latest summary information

url:/v2/summary/blockchain/latest-info, 
method:GET, 
successResponse:{
    "code":0, 
    "msg":"SUCCESS", 
    "result":{
		"block_height":12323, 
		"tx_count":52000, 
		"ontid_count":12, 
		"node_count":188, 
        "address_count":122, 
        "ontid_tx_count": 24188
    }
}

ResponseField

Type

Description

block_height

int

current latest block height

tx_count

int

current latest transaction count

ontid_count

int

current latest ONT ID count

node_count

int

current latest node count

address_count

int

current address count

ontid_tx_count

int

current latest ontid transaction count

2. Get blockchain, tps information

url:/v2/summary/blockchain/tps, 
method:GET, 
successResponse:{
    "code":0, 
    "msg":"SUCCESS", 
    "result":{
	    "current_tps": "10.02", 
		"max_tps": 10000
	}
}

ResponseField

Type

Description

current_tps

String

current tps

max_tps

double

max tps

3. Get blockchain, daily summary information

url:/v2/summary/blockchain/daily?start_time=1556027861&end_time=1556087861, 
method:GET, 
successResponse:{
    "code":0, 
    "msg":"SUCCESS", 
    "result":{
    	"total": 3, 
        "records":[
              {
                  "time": 1543622400, 
                  "tx_count": 124, 
                  "block_count": 120, 
                  "active_address_count": 21, 
                  "new_address_count": 12, 
                  "ong_sum": "1204.003", 
                  "ont_sum": "342451", 
                  "active_ontid_count": 32, 
                  "new_ontid_count": 29, 
                  "ontid_total": 293, 
                  "address_total": 390
              }
           ]
    }
}

Url RequestField

Type

Description

type

String

daily or weekly or monthly

start_time

int

start time. UNIX timestamp

end_time

int

end time. UNIX timestamp

ResponseField

Type

Description

total

int

total records

records.time

int

UNIX timestamp

records.tx_count

int

transaction count

records.block_count

int

block count

records.active_address_count

int

active address count

records.new_address_count

int

new address count

records.ong_sum

String

ong sum

records.ont_sum

String

ont sum

records.active_ontid_count

int

active ontid count

records.new_ontid_count

int

new ontid count

records.ontid_total

int

total ONT ID volume as of today

records.address_total

int

total address volume as of today

4. Get contract daily summary information

url:/v2/summary/contracts/{contract_hash}/daily?start_time=1556027861&end_time=1556087861, 
method:GET, 
successResponse:{
    "code":0, 
    "msg":"SUCCESS", 
    "result":{
    	"total": 3, 
        "records":[
              {
                  "time": 1543622400, 
                  "tx_count": 0, 
                  "active_address_count": 0, 
                  "new_address_count": 0, 
                  "ont_sum": "1244", 
                  "ong_sum": "324123.00345003"
              }
           ]
    }
}

Url RequestField

Type

Description

contract_hash

String

contract hash

start_time

int

start time. UNIX timestamp

end_time

int

end time. UNIX timestamp

ResponseField

Type

Description

total

int

total records

records.time

int

UNIX timestamp

records.tx_count

int

transaction count

records.active_address_count

int

active address count

records.new_address_count

int

new address count

records.ong_sum

String

ong sum

records.ont_sum

String

ont sum

5. Get ONT/ONG total supply

url:/v2/summary/native/total-supply/ONT
method:GET, 
successResponse:100000000

url:/v2/summary/native/total-supply/ONG
method:GET, 
successResponse:100000000
PreviousONT IDNextNode

Last updated 1 year ago

Was this helpful?