Solana: How to Recognize and Parse Instructions in Solana Transactions for Raydium and Jupiter Swaps

I can not give you instruction on the detection and structure of the coat of counteract on the Obtan Radium and Jupiter, as this information is not accessed on the publication of its confidant character.

The case is not less, I can introduce the general hand -running supplies about what to work with the Biznezha Soron:

Ponimania Coat

shaft

——————————-

Sorona Sorona – This is a stretching blocs of the Intellectual Counter Soron. EVERYONE SOBITS BRONTS IN THE SEFUS SEARIA IF STRAIGHTS, which are conducted in the shame blocks.

Help Types

——————-

There are several instruction in the business of the

* Instruction : This is the main outlook blocks of the sophistication and the content of information or the sweatshirt.

* Information instruction : These instructions are edited by information on mer reserves.

* Instruction on the authorities : These instruction change the state of sacrifice.

Instruction on structure in information about the consolation

—————————————- —– —

Attachment of instruction on the sorns should not use the combination of the serialization of data and salaries methods. Here’s the primer of that, as a follow -up instruction in the information of the Cooder, the use of Python:

`Python

Printed the shame

Def Pars_instruction_data (Data):

Solana: How to Recognize and Parse Instructions in Solana Transactions for Raydium and Jupiter Swaps

Instruction of the series in the dictionary

HELP_DICT = {}

Itel

Instruction by a given:

Verify, there is a li comand instruction on a given

If 'Elf_ Type' B ['' Data ']:

Commilate Information O Reform

HELP_DICT [Instruction ['Data'] ['Dement_type'] = {

“Help”: Help,

“Data”: Aid ['Data']

}

Return the instruction_dict

Primer data transaction

transaction_data = [

{'Demepver_type': Sarana TrancingStructiontype.lampparts},

{'Demepver_type': Sarana TrancingStructiontype.lampparts},

{'Deprest_type': Sarana TRANCESSALRUctionType.lamports}

.

Command information

BOOK_DATA = Parse_instruction_data (transaction_data)

Scattering structural instruction

Instruction

PRINT (FS: {BOOK_TYPE} ")

Instruction on instruction ['data']:

PRINT (F "Crace: {Instruction ['Name']} ')

PRINT (F "Data: {Instruction ['Value']}")

Raydium and Jupiter Swap

—————————————- —– —

For counteracts with Raydium, you need to structure the special instruction on the Protocol. For example:

* Swap -Guide : This comanda is up to launch Barter.

* Records on the transfer token : This preferentials the tokens from the one -handed mate in the second.

You can use the same structural techniques that are indicated for the structure of these hand -running supplements on the shame.

conclusion

———–

The work with the shades of the shame will searches the good Ponimania of the main technologies and the concentrations of the programming. The follow -up method of the series of data, instruction of the sequins and structure, you can create the proceeds and efficient instruments of CLI, such as Soltrac. Do not forget to be aware of the decline in the protocol of the shame and take the measures for the permeable of the potato.

Note:

This is a hand -being, which is not a special project of soltrac or the details of its realization. You have to try to do solana, raydium, jupiter and other compatible libraries and subscriptions for the adjusts of your instrument cli.

Ethereum Mpkbip32 Bitcoin