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

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

async function run() {
  const result = await atomaSDK.nodes.nodesCreate({
    data: {
      country: "Andorra",
      nodeSmallId: 3665,
      publicAddress: "<value>",
    },
    signature: "<value>",
  });

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

run();
{
  "message": "<string>"
}

Body

application/json

Represents the payload for the node public address registration request.

Response

200
application/json

Node public address registered successfully

The response is of type object.