Learn how to use Atoma’s Node API
The Atoma Node API allows you to interact with your Atoma node, via the Atoma node daemon, for tasks, stacks and funds management. This guide will help you get started with using the API.
To start the Atoma Node daemon, you must start a node on your machine. In order to do so, you can follow the instructions in the Atoma node section.
By spawning the node, you are able able to interact with the Atoma node API, directly from localhost.
By default, the Atoma Node API is accessible at:
You can configure a different port by setting the ATOMA_DAEMON_PORT
environment variable.
Atoma Node provides the following main endpoint categories:
GET /tasks
GET /subscriptions/nodes/{node_id}
GET /stacks/nodes/{node_id}?min_fill_fraction={fraction}
POST /nodes/register
POST /nodes/model-subscribe
POST /nodes/task-subscribe
POST /nodes/task-update-subscription
DELETE /nodes/task-unsubscribe
POST /nodes/try-settle-stacks
POST /nodes/submit-attestations
POST /nodes/claim-funds
GET /attestation_disputes/against/nodes/{node_id}
GET /attestation_disputes/own/nodes/{node_id}
GET /claimed-stacks/nodes/{node_id}