Stack operations
Stack operations
Get All Node Stacks
Returns all stacks associated with currently registered node badges.
Response Status Codes
200 OK
: Successfully retrieved stacks500 Internal Server Error
: Failed to retrieve stacks from state manager
Response
Response Fields
owner_address
(string): Address of the stack ownerstack_small_id
(integer): Unique small integer identifier for the stackstack_id
(string): Unique string identifier for the stacktask_small_id
(integer): Small integer identifier of the associated taskselected_node_id
(integer): Identifier of the selected node for computationnum_compute_units
(integer): Total number of compute units in this stackprice
(integer): Price of the stack in smallest currency unitalready_computed_units
(integer): Number of compute units already processedin_settle_period
(boolean): Whether the stack is currently in the settle periodtotal_hash
(string): Joint concatenation of Blake2b hashes of processed payload/response pairsnum_total_messages
(integer): Number of payload requests received for this stack
Get Node Stacks
Returns all stacks for a specific node identified by its small ID.
Parameters
id
(path, integer): Node small ID
Response Status Codes
200 OK
: Successfully retrieved stacks500 Internal Server Error
: Failed to retrieve stacks from state manager
Response
Same format as Get All Node Stacks, filtered for the specified node.
Get Almost Filled Stacks
Returns all stacks that are filled above a specified fraction threshold for all registered nodes.
Parameters
fraction
(path, float): Fill threshold (0.0 to 100.0) to filter stacks
Response Status Codes
200 OK
: Successfully retrieved stacks500 Internal Server Error
: Failed to retrieve stacks from state manager
Response
Same format as Get All Node Stacks, filtered by the fill threshold.
Example Error Response
Get Node Almost Filled Stacks
Returns all stacks that are filled above a specified fraction threshold for a specific node.
Parameters
id
(path, integer): Node small IDfraction
(path, float): Fill threshold (0.0 to 100.0) to filter stacks
Response Status Codes
200 OK
: Successfully retrieved stacks500 Internal Server Error
: Failed to retrieve stacks from state manager
Response
Same format as Get All Node Stacks, filtered by both node ID and fill threshold.
Example Error Response
Notes
The fill threshold represents the percentage of compute units already processed
A stack is considered "filled" when
already_computed_units / num_compute_units >= fraction
The fraction parameter should be between 0.0 and 100.0
Last updated