Register account
Publishes a signed mapping from an account to the libp2p peer that will receive chat for it, then gossips it to the rest of the network.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://ldn.core.test.network/directory/register" \ -H "Content-Type: application/json" \ -d '{ "account": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2", "node_peer": "12D3KooWAbCdEfGhIjKlMnOpQrStUvWxYz", "timestamp": 1709500000000000000, "signature": "string" }'{
"ok": true
}{
"error": "invalid signature"
}