Qortal Project

The future of blockchain platforms

User Tools

Site Tools


Sidebar

Qortal Project Wiki

Important Notices

Introduction

Project Model

Minting

Communications

Trade Portal

Qortal Hosting (QDN)

Voting System

AT System

Hardware

Frequently Asked Questions (FAQ)

How-To Guides

Node Setup Guides

Third-Party Services

api_calls

This is an old revision of the document!


API Calls

Please note: the API calls are universal. They will work on any operating system. You need to have enabled API documentation in your settings.json file for using API calls. You can only run these calls on the computer acting as a node which will need to be fully synced!

Here is the line: "apiDocumentationEnabled": true

List of mostly used API calls:

Your Qortal Node API Documentation/Access:

http://localhost:12391/api-documentation/

Your core block chain height, core status (minting or syncing), number of connected nodes:

http://localhost:12391/admin/status

Your Qortal Node Admin Information (your up time & Build Version):

http://localhost:12391/admin/info

Your Qortal Node Information (Address, PublicKey, Blocks Minted):

http://localhost:12391/addresses/(INPUT_YOUR_ADDRESS)

Adding new peer to your DB:

http://localhost:12391/api-documentation/#/Peers/addPeer

Ditch chain to set height:

If your core is stuck at some height, you can try to ditch blocks to some height and re-sync from there. You are inputting height to ditch to. If you will input 300000, your core will drop blocks up to 300000 and then start to sync from that height and catch back up to the right height. If during the roll back you notice its getting slower or stalling, just close core and repeat steps, sometimes you need to repeat the steps a couple to roll back to your desired block quickly:

http://localhost:12391/api-documentation/#/Admin/orphan

api_calls.1637017386.txt.gz · Last modified: 11/15/2021 18:03 by gfactor