Register account

Registers an account in the directory, associating it with a libp2p peer ID.

POST
/directory/register

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://ldn.test.network/directory/register" \  -H "Content-Type: application/json" \  -d '{    "account": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",    "node_peer": "12D3KooWAbCdEfGhIjKlMnOpQrStUvWxYz",    "timestamp": 0,    "signature": "string"  }'
{
  "ok": true
}
Empty