POST
/
nodes
/
task-update-subscription
curl --request POST \
  --url http://localhost:3001/nodes/task-update-subscription \
  --header 'Content-Type: application/json' \
  --data '{
  "gas": "<string>",
  "gas_budget": 1,
  "gas_price": 1,
  "node_badge_id": "<string>",
  "price_per_one_million_compute_units": 1,
  "task_small_id": 123
}'
{
  "tx_digest": "<string>"
}

Body

application/json
price_per_one_million_compute_units
integer
required

The price per one million compute units.

Required range: x >= 0
task_small_id
integer
required

The small ID of the task to subscribe to.

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 task update subscription successful

Represents a response to a node task update subscription request.

This struct contains the transaction digest, which is a unique identifier for the transaction associated with the node task subscription.

tx_digest
string
required

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