WABA Network
  • Backgrounds & Intro
    • 🏭An Overview of Our Current Electricity Grid System
    • ⚡What is WABA
    • 🕖Addressing the Challenges
    • 🗝️Key WABA Components
    • 🔏User Data Privacy
  • For Developers
    • ⛓️Configuration Details
    • 🔗WABA OpenAPI
      • Apply for AppID and Secret
      • Call WABA OpenAPI
      • EIP155-327126
      • Hardware APIs
  • WABA tech essence
    • 🔌Proof of Consumption (PoC)
    • WABA Infrastructure
      • Hardware Layer
      • Algorithmic Layer
      • Power System
      • Sharding Isolation Mechanism
  • Depin and stake mining
    • 🛠️DePIN Mining
    • ⛏️Mining Reward
    • 👷‍♂️Stake Mining
  • OTHER RESOURCES
  • 🔗Useful Links
Powered by GitBook
On this page
  1. For Developers
  2. WABA OpenAPI

Hardware APIs

  1. Get Device Statistics

POST /api/devices

request parameters:

parameter

type

description

location

String

response parameters:

parameter

type

description

total

Integer

Total Number of Devices

onlineTotal

Integer

Total Number of Online Devices

openTotal

Integer

Total Number of Powered Devices

  1. Get Device Detailed Information

POST /api/devices/detail

request parameters:

parameter

type

description

pageNo

Integer

pageSize

Integer

location

String

response parameter:

parameter

type

description

deviceId

String

voltage

Integer

current

Integer

power

Double

Historical Power Consumption(KWH)

  1. Get Real-time Power Consumption of Device

POST /api/devices/realtime

request parameter:

parameter

type

description

location

String

interval

Integer

1-second,2-minute

response parameter:

parameter

type

description

power

Double

Real-time Power Consumption(KWH)

  1. Get Power Consumption of Device for a Specified Time Period

POST /api/devices/history

request parameter:

parameter

type

description

location

String

startTime

String

yyyy-MM-DD HH:mm:SS

endTime

String

yyyy-MM-DD HH:mm:SS

response parameter:

parameter

type

description

power

Double

Real-time Power Consumption(KWH)

PreviousEIP155-327126NextProof of Consumption (PoC)

Last updated 11 months ago

🔗