cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

Types for ethermint transaction decoding?

Open Undead8 opened this issue 3 years ago • 2 comments

I need to decode transactions of type '/ethermint.evm.v1.MsgEthereumTx'.

I am able to decode the transaction itself, but in order to decode the messages I understand that I must use a registry. My issue is that the defaultRegistryTypes does not contain the '/ethermint.evm.v1.MsgEthereumTx' type, so I am unable to decode the messages with the default registry.

Could you kindly point me in the right direction as to how I could include this type and where I could find it?

@webmaster128

Thanks a lot for your help!

Undead8 avatar Feb 22 '22 16:02 Undead8

Right. You need to generate the TS code for those types. Or someone from the Ethermint team can do that for you. See https://github.com/cosmos/cosmjs/blob/main/packages/stargate/CUSTOM_PROTOBUF_CODECS.md for how to do the code generation.

webmaster128 avatar Feb 22 '22 22:02 webmaster128

append this issue Unsupported type: '/ethermint.types.v1.EthAccount'. when i try to send Tx. ref

keplr has ethermint support in v0.9.14

giansalex avatar Feb 27 '22 21:02 giansalex