We are manually decoding the encoded extrinsic.
[ex 0x510284.. -> TransactionInfo{value=AccountID{address=14pT17...)]
It was confirmed that polkadot-js is well decoded through the toHuman method no matter what event extrinsic is given as an input value.
But in Java, I need to know the event type in advance like below.
// I need to know in advance that it is an event type called Balance Transfer.
ExtrinsicReader<BalanceTransfer> reader = new ExtrinsicReader<>(
new BalanceTransferReader(SS58Type.Network.LIVE),
SS58Type.Network.LIVE
);
So my question is, can I infer the event type in advance from the encoded extrinsics? The reason I'm asking this question is because I found that the front of some extrinsics is similar for each event type
Otherwise, how can I do polkadot-js?