BuyBitcoinNow on Nostr: Example of how events are saved: { "id": "", "pubkey": "", "created_at": , "kind": , ...
Example of how events are saved:
{
"id": "",
"pubkey": "",
"created_at": ,
"kind": ,
"tags": [],
"content": "",
"sig": ""
}
The id field tells us the ID of the event.
The pubkey field tells us the public key of the user who sent the event.
The created_at field tells us when the event was published.
The kind field tells us what sort of event it is.
The tags field tells us about tags on the event. These are used for creating links, adding media, and mentioning other users or events.
The content field gives us the content of the event. In this case, the short text post.
The sig field is the signature that clients use to verify that the user with this pubkey did in fact send this event on the date specified.
Published at
2024-08-29 11:00:52Event JSON
{
"id": "0c16067ad8a560a99d1fd39476d7ad9e1ca420135d486f3dbe334e4f6bc2baa0",
"pubkey": "0e4c61b66b08cb4c7308babc0b9d40ac7d89153d72229cb54f2d0e5cb3baa788",
"created_at": 1724929252,
"kind": 1,
"tags": [
[
"e",
"8d562f905fffb963ae920db0c3747617bca6147b577c4aa0b06fe792400a218a",
"wss://nostr.vulpem.com",
"root"
],
[
"e",
"d80bc7cfdd4e863b1ecba11eda9876f7dfc70891834b96d199a2300369f2c8a2",
"wss://nostr.oxtr.dev",
"reply"
],
[
"p",
"99eed036a0e55fa39e01078a87ff7314f6b9d5a8601abffcc7a8be4b1e1f6407"
]
],
"content": "Example of how events are saved:\n\n{\n \"id\": \"\",\n \"pubkey\": \"\",\n \"created_at\": ,\n \"kind\": ,\n \"tags\": [],\n \"content\": \"\",\n \"sig\": \"\"\n}\n\nThe id field tells us the ID of the event.\n\nThe pubkey field tells us the public key of the user who sent the event.\n\nThe created_at field tells us when the event was published.\n\nThe kind field tells us what sort of event it is.\n\nThe tags field tells us about tags on the event. These are used for creating links, adding media, and mentioning other users or events.\n\nThe content field gives us the content of the event. In this case, the short text post.\n\nThe sig field is the signature that clients use to verify that the user with this pubkey did in fact send this event on the date specified.",
"sig": "47710b26d1a85c8e6ea6a123ce3c415a205cc77b4b065b60295bd6764cca37a3cddb88948495d977e846e8a37bc7c8184da6a95741a739a467b66d51fe8a252e"
}