josh on Nostr: This would be an example of the events I'm trying to pull back and have them all ...
This would be an example of the events I'm trying to pull back and have them all decrypted:
const events = await ndk.fetchEvents({ kinds: [7376], authors: [serviceUserResponse.pubkey] });
for (const whe of walletHistoryEvents) {
const res = await ndk.signer.nip44Decrypt(ndkUser, whe.content);
console.log(res);
}
Published at
2025-02-18 17:13:49Event JSON
{
"id": "c58eea9373e955cc4fb7fba9d7afd2fc896e95ff0550bc1394de5996c9d3b647",
"pubkey": "0e29efc2a3eb6966403e8c61cb8bea6d78527af5e0565a2baa0f313eff142af2",
"created_at": 1739898829,
"kind": 1,
"tags": [
[
"e",
"6187f5ded286fac3c0e1cd094ece3184e8652f085423efb05f32c934ff8fc786",
"ws://192.168.18.7:7777/",
"root",
"5a09285d99fba5e8ae3223e7137fe85be39fdba14fe368cde653adc9e51640dd"
],
[
"e",
"49a58d2e05f90ba69f6edf266e40612b21cc3b429b706c23f2ecc7bf114b675c",
"wss://nostr.wine/",
"reply",
"5a09285d99fba5e8ae3223e7137fe85be39fdba14fe368cde653adc9e51640dd"
],
[
"p",
"5a09285d99fba5e8ae3223e7137fe85be39fdba14fe368cde653adc9e51640dd"
],
[
"p",
"0e29efc2a3eb6966403e8c61cb8bea6d78527af5e0565a2baa0f313eff142af2"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "This would be an example of the events I'm trying to pull back and have them all decrypted:\n\nconst events = await ndk.fetchEvents({ kinds: [7376], authors: [serviceUserResponse.pubkey] });\n for (const whe of walletHistoryEvents) {\n const res = await ndk.signer.nip44Decrypt(ndkUser, whe.content);\n console.log(res);\n }",
"sig": "76431ef331d4533d25029785ef68f11d48a47973071babbae439f9d7ce2c15844c6ac999084b23d5ccf28a8899da866adf2cd495ac398e0764a323d49e106e91"
}