Atoma Docs
  • Developers
  • Introduction
    • Atoma Basics
    • Compute Layer
    • Trust and Privacy
  • Developers
    • Atoma architecture overview
    • Atoma smart contract
      • Atoma architecture
      • Interact with the Atoma smart contract
      • Current available tasks on Atoma
  • Node Operators
    • Atoma node
      • Install Sui cli
      • Install CUDA
      • Install docker
      • Firewall permissions
      • HuggingFace authentication
      • Atoma node deployment
      • Atoma node daemon
        • Node subscriptions
        • Task Management
        • Stack operations
        • Attestation/Dispute management
        • Claimed Stacks management
        • Submit new node registration transaction
        • Task subscriptions
        • Submit Stack settlements and attestations
        • Claim Stacks
Powered by GitBook
On this page
  1. Node Operators
  2. Atoma node
  3. Atoma node daemon

Node subscriptions

API Endpoints

Subscription Management

Get All Node Subscriptions

GET /subscriptions

Returns all subscriptions for all the current registered node badges.

Response

Contains all Task subscriptions of the node with node_small_id.

[
  {
    "node_small_id": "1",
    "task_small_id": 10,
    "price_per_compute_unit": 10,
    "max_num_compute_units": 10000000,
    "valid": true
  }
]

node_small_id: The current node's small id, received upon registration.

task_small_id: The Task small id to which the current subscription refers to.

price_per_compute_unit: The price per compute unit (i.e., per text token) to which the node committed to operate for the given Task with task_small_id.

max_num_compute_units: The maximum number of compute units the node is willing to delegate to a single Stack.

valid: If the current subscription is valid or not.

Get Node Subscriptions

GET /subscriptions/:id

Returns all subscriptions for a specific node.

Parameters

  • id (path): Node small ID

Response

Same format as Get /Subscriptions endpoint, filtered for the specified node.

Here's the improved documentation for the Get All Tasks endpoint based on the code:

PreviousAtoma node daemonNextTask Management

Last updated 6 months ago