POST
/
nodes
/
try-settle-stacks
curl --request POST \
  --url http://localhost:3001/nodes/try-settle-stacks \
  --header 'Content-Type: application/json' \
  --data '{
  "gas": "<string>",
  "gas_budget": 1,
  "gas_price": 1,
  "node_badge_id": "<string>",
  "num_claimed_compute_units": 1,
  "stack_small_ids": [
    123
  ]
}'
{
  "tx_digests": [
    "<string>"
  ]
}

Body

application/json

Represents a request to try settling a stack.

This struct encapsulates the necessary parameters for attempting to settle a stack, including optional gas-related fields.

num_claimed_compute_units
integer
required

The number of compute units claimed.

Required range: x >= 0
stack_small_ids
integer[]
required

The small IDs of the stacks to settle.

gas
string

Optional gas object ID. If not provided, the default is None.

gas_budget
integer | null

Optional gas budget. If not provided, the default is None.

Required range: x >= 0
gas_price
integer | null

Optional gas price. If not provided, the default is None.

Required range: x >= 0
node_badge_id
string

Optional node badge ID. If not provided, the default is None.

Response

200
application/json
Node try settle stacks successful

Represents a response to a node try settle stack request.

This struct contains the transaction digest, which is a unique identifier for the transaction associated with the attempt to settle a stack.

tx_digests
string[]
required

The transaction digests. This is a unique identifier for the transaction.