paritytech / subport

Parity Substrate(-based) chains usage and development support
https://docs.substrate.io
Apache License 2.0
84 stars 13 forks source link

How can I query a extrinsic only by txhash? #85

Closed readygo586 closed 3 years ago

readygo586 commented 3 years ago

In Ethereum, a submitted Transaction's detail information can be queried out by eth_getTransactionByHash method, I have not find similar RPC method in polka. However, in polkadot.subscan.io, I can easily find the transaction using just the txHash (https://polkadot.subscan.io/extrinsic/0x55fed9bea66baefc0481fdc29a29ee56c2203e972101b9c726e0c788d0564b79)

Any Idea on how I can implement such function?

jacogr commented 3 years ago

See https://wiki.polkadot.network/docs/en/build-protocol-info#unique-identifiers-for-extrinsics

nuke-web3 commented 3 years ago

@readygo586 I was going to post the same link 😁 ☝🏼 Please reopen this if you need further clarifications!

And if you have not already, please join us in our support channel on element and/or the Polkadot Discord to get further help as you get deeper into development with substrate 🥳

readygo586 commented 3 years ago

thanks for the information.