The_Grape on Nostr: I need some more Nostr for beginners help How do I receive a profiles meta-data such ...
I need some more Nostr for beginners help
How do I receive a profiles meta-data such as username and profile pic? I tried subscribing to @jbs profile like this (using @fiatjafs nostr-tools for js)
let sub = relay.sub([
{
authors: [
'32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245'
],
kinds: [0]
},
]);
but I get nothing… When I add a 1 to the kinds list I receive posts as expected.
Any suggestions?
Published at
2023-01-25 09:48:28Event JSON
{
"id": "da0e47c3acc96fad41b9be5c91d3884793773015c4e071bc128c1b5c106169ec",
"pubkey": "66a2eec5ef4a0c232c3c7f8720838a446296194742fe001ccb8dbb926b72518b",
"created_at": 1674640108,
"kind": 1,
"tags": [],
"content": "I need some more Nostr for beginners help \n\nHow do I receive a profiles meta-data such as username and profile pic? I tried subscribing to @jbs profile like this (using @fiatjafs nostr-tools for js) \n\n let sub = relay.sub([\n {\n authors: [\n '32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245'\n ],\n kinds: [0]\n },\n ]);\n\nbut I get nothing… When I add a 1 to the kinds list I receive posts as expected. \n\nAny suggestions?",
"sig": "2c07ade15588673a8eba6af71e55c632d60b5bf5c65b35df20c9dc685a00b05b0a38217e3d2bb4e35f1758f2d238944eeac79b667a5ea485f1e3ba1fdd4e9f0d"
}