POST
/
nodes
/
model-subscribe
curl --request POST \
  --url http://localhost:3001/nodes/model-subscribe \
  --header 'Content-Type: application/json' \
  --data '{
  "echelon_id": 1,
  "gas": "<string>",
  "gas_budget": 1,
  "gas_price": 1,
  "model_name": "<string>",
  "node_badge_id": "<string>"
}'
{
  "tx_digest": "<string>"
}

Body

application/json

Represents a request to subscribe to a node model.

This struct encapsulates the necessary parameters for subscribing to a node model, including optional gas-related fields.

echelon_id
integer
required

The echelon ID associated with the subscription.

Required range: x >= 0
model_name
string
required

The name of the model 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 model subscription successful

Represents a response to a node model subscription request.

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

tx_digest
string
required

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