Questions tagged [decode]
The decode tag has no usage guidance.
26
questions
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 = ...
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: '...
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 ...
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, ...
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, ...
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 ...
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 ?
...
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 ...
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 ...
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 ...
1
vote
1
answer
213
views
how to make a proper schema for the arguments
there are arguments
"args": [
{
"name": "decimals",
"type": "u8"
},
{
"name": &...
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 ...
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([
...
1
vote
1
answer
942
views
How to decode base64 response?
Req:
{
"method": "getMultipleAccounts",
"jsonrpc": "2.0",
"params": [
[
"...
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?