René Aaron on Nostr: Yeah, requestProvider() is supposed to be called when a user e.g. clicks a connect ...
Yeah, requestProvider() is supposed to be called when a user e.g. clicks a connect button:
> If one is not available, the Bitcoin connect modal will be launched. This should be called on a user interaction to avoid the modal unexpectedly being shown to the user.
The onConnected event will be raised whenever a user connects for the first time (or connected before and reloads the page). If you want to e.g. display the balance that's the way to do it 👍
Published at
2025-04-01 08:18:25Event JSON
{
"id": "c7c76ad4e312e9dbadb20f7e6e5465f5da7c078eafbf9ae907414671d042ffe3",
"pubkey": "cd169bd8fbd5179e2a8d498ffc31d3ae0e40825ff2b8a85ea359c4455a107ca8",
"created_at": 1743495505,
"kind": 1,
"tags": [
[
"e",
"68c288953397a35e908e89322e70ec22c040af99b7f4a629b16a93fd70e8088b",
"",
"root",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
],
[
"e",
"ea407a09124d1dd541d0f124efcb98086dba88777a5f04f384681f7a65c24c85",
"wss://nostr.wine/",
"reply",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
],
[
"p",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
],
[
"p",
"4657dfe8965be8980a93072bcfb5e59a65124406db0f819215ee78ba47934b3e"
]
],
"content": "Yeah, requestProvider() is supposed to be called when a user e.g. clicks a connect button: \n\n\u003e If one is not available, the Bitcoin connect modal will be launched. This should be called on a user interaction to avoid the modal unexpectedly being shown to the user.\n\nThe onConnected event will be raised whenever a user connects for the first time (or connected before and reloads the page). If you want to e.g. display the balance that's the way to do it 👍 \n",
"sig": "79d447b7979ee25b23f60342d26344ac64020d32f37be06e6be23d5a39ad5ae02e4762813dc1b0abe9c0b82210a48701ce03594de7ce23d0bf1330eaa610964d"
}