POST
/
v1
/
nodes
/
lock
import { AtomaSDK } from "atoma-sdk";

const atomaSDK = new AtomaSDK({
  bearerAuth: process.env["ATOMASDK_BEARER_AUTH"] ?? "",
});

async function run() {
  const result = await atomaSDK.nodes.nodesCreateLock({
    model: "Focus",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "node_small_id": 1,
  "public_key": "<string>",
  "stack_entry_digest": "<string>",
  "stack_small_id": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The model to lock a node for

Request body for creating a node lock

Response

200
application/json

Node DH public key requested successfully

The response body for selecting a node's public key for encryption from a client. The client will use the provided public key to encrypt the request and send it back to the proxy. The proxy will then route this request to the selected node.