Skip to main content

Questions tagged [decode]

The tag has no usage guidance.

1 vote
1 answer
18 views

How to convert a MessageCompiledInstruction to TransactionInstruction in web3.js

I have a VersionedTransaction, which has a message with some instructions of type MessageCompiledInstruction. I'm trying to decode the ComputeBudgetInstruction with the following code: const msg = ...
Quantoor's user avatar
  • 113
0 votes
0 answers
27 views

Log Decode Instruction from webSocket

For three days now I have been trying to figure out how to Decode these codes when there is no proper documentation and no proper instructions. log => { signature: '...
Amin Doreh's user avatar
2 votes
1 answer
103 views

Decoding an instruction for a token on the spl token program

Hello you may have seen my last post, Error : TypeError: Cannot read properties of undefined (reading 'equals') This is a follow up to that post. I decided to experiment more with ...
Golden's user avatar
  • 51
0 votes
0 answers
59 views

Error : TypeError: Cannot read properties of undefined (reading 'equals')

Hello im trying to decode a possible MintToInstruction if there is one present in the transaction im looking at. This is my code: const { decodeMintToInstruction, decodeMintToCheckedInstruction, ...
Golden's user avatar
  • 51
1 vote
1 answer
187 views

Decoding instructions

Hello I hope you are all having a great day!! I wanted to ask how I would go about decoding transaction instructions into a readable format. This is my code below const { decodeMintToInstruction, ...
Golden's user avatar
  • 51
0 votes
0 answers
161 views

decode raydium transaction detail information

Solscan has introduced a new feature called "defi activities." By opening any token address, you can see all the transaction details for that token. Currently, I am using the WebSocket ...
blueboy's user avatar
  • 23
1 vote
1 answer
23 views

Is there anyway to decode program account change that I don’t know the struct?

I’m trying to decode update that I got from the call of “connection.onProgramAcccountChange” but I don’t know the struct of possible outcome, is there anyway to get the struct or decode it somehow ? ...
Daniel Kotlarov's user avatar
0 votes
1 answer
181 views

Decoding transaction instructions in order to listen to outputs of those transactions

currently working on a project and it's all coming together nicely apart from this part. So what I want to achieve is listening to instructions, so I'm already subsribed and listening to the address ...
Niek Kamer's user avatar
0 votes
0 answers
258 views

Decode data returned by programSubscribe

I can't figure out how to decode the 'data' received when subscribed (via websocket) to the Jupiter Limit Order Program (jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu). I'm using the program's IDL. This ...
TheLastSamurai's user avatar
0 votes
1 answer
122 views

what the numbers in the array indicate?

I work with decoding data. I use the @solana/spl-token package for that. sometimes I get the TokenInvalidInstructionKeysError error I have this code ts. as keys I provide an array of keys that I have ...
slntrx's user avatar
  • 111
1 vote
1 answer
213 views

how to make a proper schema for the arguments

there are arguments "args": [ { "name": "decimals", "type": "u8" }, { "name": &...
slntrx's user avatar
  • 111
1 vote
2 answers
3k views

how to decode data instructions with javascript

upd: https://docs.solana.com/developing/programming-model/transactions#instruction-data here, my task is to decode this data using js I tried to solve the issue with this post How to get Solana ...
slntrx's user avatar
  • 111
3 votes
1 answer
206 views

Deserializing an Enum with borsh

How do I make a "kind": "enum" using borsh? In the IDL, it says that it's an enum instead of "struct". Here is what I tried: const WhitelistMode = borsh.rustEnum([ ...
Garen's user avatar
  • 31
1 vote
1 answer
942 views

How to decode base64 response?

Req: { "method": "getMultipleAccounts", "jsonrpc": "2.0", "params": [ [ "...
omm's user avatar
  • 27
0 votes
0 answers
52 views

ntexapi.rs file not working

Keep getting this error involving the ntexapi.rs file: error[E0793]: reference to packed field is unaligned. Tried to modify the code but nothing works. Files are up to date, can anyone help me out?
Simon's user avatar
  • 1

15 30 50 per page