Skip to main content

Questions tagged [events]

Questions that relate to pallets and disptachables that emit specific events, including decoding events.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

Best Practices for Implementing Private Events in Blockchain: Restricting Event Visibility to Specific Addresses

I'm exploring a nuanced aspect of blockchain functionality and seeking community insights. In blockchain systems, events are typically public, accessible to any address. However, I'm interested in ...
AnonDao's user avatar
  • 23
1 vote
0 answers
17 views

How to Securely Notify Users of New Messages in a Substrate-based Chat Application?

I'm developing a chat application using Substrate and facing a specific issue regarding user notifications. My application needs to notify users when they have a new message in a chat channel. ...
Mr Coder's user avatar
  • 923
1 vote
0 answers
31 views

how to confirm a event type?

I query all events, and decode the event a known type, but maybe some write them cause error, how to parse the event pub fn decode_event(data: &str) -> Result<String> { let mut vec = ...
Abel's user avatar
  • 61
1 vote
0 answers
65 views

From the parachain, how to read the relay chain events of a current block?

From this comment and this question, There's a function for runtime-benchmarks to get all the events(). And I want something similar that can be accessed from the parachain. Just events from the relay ...
Jitterbug's user avatar
  • 219
0 votes
0 answers
42 views

Event subscription error from EVM compatible Substrate chain

i'm trying to listen events against a solidity smart contract deployed on EVM compatible Substrate chain and getting following error Error listening event ChangeOwner : Error: Returned error: Method ...
BlockBird's user avatar
0 votes
0 answers
64 views

How to trace XCM messages for all parachains

Is it possible to trace XCM messages (origin para and account id, destination para and account id, instruction and parameters) just utilizing the relay chain storage? If not, what is the simplest way ...
kukabi's user avatar
  • 543
0 votes
0 answers
76 views

Indexing: big Events vs. storage lookup. Downsides of having big Events

Problem statement: While indexing it's impossible to extract information from the Extrinsic call when Extrinsic has optional parameters (default if none). Solutions: storage lookup (seems suboptimal ...
vovacha's user avatar
  • 148