laanwj on Nostr: there's also a REST interface that can be enabled for simple unauthenticated queries ...
there's also a REST interface that can be enabled for simple unauthenticated queries
JSON-RPC is for the more complex and control stuff like shutting down the node, that needs to be protected against XSS
Published at
2024-11-28 21:11:28Event JSON
{
"id": "60c1ef2848e006ed719a9d44543f1e47afcdbbf84842c4dcb5ef2ff55c34a60a",
"pubkey": "0aa39e5aef99a000a7bdb0b499158c92bc4aa20fb65931a52d055b5eb6dff738",
"created_at": 1732828288,
"kind": 1,
"tags": [
[
"e",
"7341377295c0a3c1ffa7ac41d81b1ad22531087d65c905d19225666e738e4604",
"wss://relay.primal.net/",
"root"
],
[
"e",
"06ef3d6026bd0212bb32ed68a9f3de077948d47696b90593eaf1115af5f22a74",
"wss://nostr.x0f.org/",
"reply"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"",
"mention"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "there's also a REST interface that can be enabled for simple unauthenticated queries\n\nJSON-RPC is for the more complex and control stuff like shutting down the node, that needs to be protected against XSS",
"sig": "90c1f2b0b2379f7567e0c6364a24cf5e8d1b2a2355ab4e93e03a3f7d9eec674240aa8675a3cb4bbb2661090c9e916bf2a367421877b5b7d81acca012aba386f6"
}