Skip to content

Provenance Network API documentation

SAI PRASANTH VUPPALA edited this page Apr 18, 2023 · 2 revisions

APIs

Fetch all the validator nodes hosted by the user

GET: https://api.moinet.io/moi-id/moinode/list?userID=<user_id>
Response:

[
    {
        "userMoiID": "<userID>",
        "kramaID": "<kramaID>",
        "timeStamp": "1681821873"
        "operatorCountry": "AUS"
    }
]

The Date of first validator node hosted by the user

Sort the response of above API in ascending order, then array[0].timeStamp gives the date/time of the first validator node hosted.

Fetch rewards/incentives earned by kramaID

GET: https://pnapi.moinet.io/moi/readtokensummary?kramaId=<kramaID>
Response:

{
    "meta": {
        "code": 200,
        "requestId": "ddce4fb6-5a50-4e27-a4c4-1b1647c46c90",
        "message": "sucess"
    },
    "data": {
        "total_token_summary": 8450,
        "incentive_freq": 86400
    }
}