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

Body

application/json

Represents a request to register a node.

This struct is used to encapsulate the necessary parameters for registering a node, including optional gas-related fields.

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

Response

200
application/json
Node registration successful

Represents a response to a node registration request.

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

tx_digest
string
required

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