Skip to main content
added 269 characters in body
Source Link
Arowana
  • 2.4k
  • 3
  • 9

The full descriptive label in the explorer is hardcoded https://github.com/solana-labs/solana/blob/5450f978445cff9ac9959d47a7429e0b78c873e3/explorer/src/utils/tx.ts#L66

So there is no way to programmatically obtain this label, the only way would be to have a more descriptive name field embedded in the IDL.

The way you are converting the base64 program data into a buffer is correct const dataBuffer = Buffer.from(...info.data) However, you cannot really do anything from there because this info.data field is the binary of the program to be run by the solana runtime.

The full descriptive label in the explorer is hardcoded https://github.com/solana-labs/solana/blob/5450f978445cff9ac9959d47a7429e0b78c873e3/explorer/src/utils/tx.ts#L66

So there is no way to programmatically obtain this label, the only way would be to have a more descriptive name field embedded in the IDL

The full descriptive label in the explorer is hardcoded https://github.com/solana-labs/solana/blob/5450f978445cff9ac9959d47a7429e0b78c873e3/explorer/src/utils/tx.ts#L66

So there is no way to programmatically obtain this label, the only way would be to have a more descriptive name field embedded in the IDL.

The way you are converting the base64 program data into a buffer is correct const dataBuffer = Buffer.from(...info.data) However, you cannot really do anything from there because this info.data field is the binary of the program to be run by the solana runtime.

Source Link
Arowana
  • 2.4k
  • 3
  • 9

The full descriptive label in the explorer is hardcoded https://github.com/solana-labs/solana/blob/5450f978445cff9ac9959d47a7429e0b78c873e3/explorer/src/utils/tx.ts#L66

So there is no way to programmatically obtain this label, the only way would be to have a more descriptive name field embedded in the IDL