Submit Stack settlements and attestations
Stack Settlement Management
Try Settle Stacks
Submits a transaction to attempt settling one or more stacks for a node.
Request Body
Request Fields
stack_small_ids
(array of integers): IDs of the stacks to settlenum_claimed_compute_units
(integer): Number of compute units being claimed for settlementnode_small_id
(integer, optional): ID of the node settling the stacksgas
(string): Object ID of the gas object to pay for the transactiongas_budget
(integer): Maximum gas units allowed for the transactiongas_price
(integer): Price per gas unit in MIST
Response Status Codes
200 OK
: Successfully submitted settlement transactions500 Internal Server Error
: Failed to submit transactions or retrieve stack data
Response
Response Fields
tx_digests
(array of strings): Array of transaction digests, one for each stack settlement attempt
Submit Stack Settlement Attestations
Submits attestation proof transactions for one or more stacks in settlement.
Request Body
Request Fields
stack_small_ids
(array of integers): IDs of the stacks requiring attestationnode_small_id
(integer, optional): ID of the attesting node (if omitted, uses all registered nodes)gas
(string): Object ID of the gas object to pay for the transactiongas_budget
(integer): Maximum gas units allowed for the transactiongas_price
(integer): Price per gas unit in MIST
Response Status Codes
200 OK
: Successfully submitted attestation transactions500 Internal Server Error
: Failed to submit transactions or retrieve necessary data
Response
Response Fields
tx_digests
(array of strings): Array of transaction digests, one for each successful attestation submission
Notes
Stack Settlement Process:
Node attempts to settle stacks by submitting proof of computation
Other nodes must provide attestations to verify the computation
Settlement completes when required attestations are received
Important Considerations:
The attestation node index is offset by 1 (0th index reserved for original selected node)
Multiple attestations may be required for each stack
Each stack generates its own transaction digest
Failed attestations must be retried separately
Example Error Responses
Last updated