1

When sending a transaction, in the wallet confirmation step, in some programs ?the wallet? seems to recognize what the instruction does, whereas in others it just lists the accounts that get written to.

  • What entity is responsible for identifying what a particular instruction does (wallet provider?/solana?), and can that data be passed in somehow ?

Judging from @solana/web3.js docs, there's nothing that can be passed there to add metadata to the instruction.

I'm sure it would be of great use to the community to have more specific/human readable and verifiable transaction data versus blindly trusting 'unknown instructions'.

Can someone help me ?

1 Answer 1

1

Instruction data is opaque to the runtime. Only the declaring program knows how to interpret it. Every program that a wallet (or explorer, etc) can display instruction or account data for has an explicit parser implementation

Your Answer

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

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