4

I want to know the contract address, contract caller, and what parameters were passed into the contract call but in the Polkadot.js UI, the presented fields don't seem to be helpful. enter image description here

0

1 Answer 1

3

Caller is the signer of the extrinsic, contract address is the first argument (which named dest), parameters is the last argument (named data) but without contract definition it cannot be decoded.

2
  • So if I have the contract definition, how can I decode it?
    – Minh Mốc
    Feb 25, 2022 at 14:58
  • @MinhMốc seems the parameters are encoded as the same codec as substrate txs, you may use @polkadot/types to decode it with the type metadata from ABI. Feb 25, 2022 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.