• تاریخ انتشار : یکشنبه ۲۱ بهمن ۱۴۰۳ - ۲:۱۶
  • کد خبر : 1174
  • چاپ خبر

Solana: Jito transaction with bundleOnly=true parameter?

Solana: Jito transaction package only with V2. Parameter? ============================================ = =================== Starting with Solana 1.13, you can send several transactions in one package, as long as certain conditions are met. In this article, we will study how to use the transaction Solana to use the parameter pakeonly = True. What is Jito’s deal? —————————— The

Solana: Jito transaction package only with V2. Parameter?

============================================ = ===================

Starting with Solana 1.13, you can send several transactions in one package, as long as certain conditions are met. In this article, we will study how to use the transaction Solana to use the parameter pakeonly = True.

What is Jito’s deal?

——————————

The Jito transaction is an optimized type of transaction that allows you to effectively and safely transfer assets in multiple accounts. It was introduced Solana 1.8 as a replacement for the old feature “Transfer”. The Jito deal consists of several transactions, each with its own data set.

Packet transactions

———————-

The link transaction is an optimized way to send several transactions in one transaction. This allows for a significant increase in efficiency compared to sending individual transactions one after another.

Parameter Bendleonly

Solana: Jito transaction with bundleOnly=true parameter?

—————————–

By sending a transaction as a bundle to solana, you can specify the parameter “bundle” with the value “True”. Here is an example:

`Sol

Use Solana Program :: Account_info;

// Create two account information objects for sender and receiver accounts

Let the sender_account_info = account_info :: New (

“Sender” .to_string (),

0,

1, // Sender Account Index

);

Let the receiver_account_info = account_info :: New (

“receiver” .to_string (),

0,

1, // Receiver Account Index

);

// Create a Jito deal with the packet = true and tip

Let jito_transaction = Solana_program :: Deal :: Builder :: New ()

.Set_account_info (sender_account_info)

.Set_account_info (receiver_account_info)

.Set_TAG (“Jitotransaction”)

.Set_tag (“Pakeonly = True”)

.with_packed_bytes (

Solana_program :: Packed_array :: Massive (

// Add jito transactions as individual bytes

Solana_program :: Packed_array :: New (

Account_info :: New (

“Deal1” .To_string (),

0,

1, // transaction index

)

Account_info :: New (

“Deal2” .To_string (),

0,

1, // transaction index

)

)

)

);

// Send Jito’s transaction as a package

let’s score = solana_program :: Program :: Send_jito_transaction (& Jito_transaction);

`

MEV Protection

——————

By default, Solana transactions do not provide MEV (maximum ether) protection. However, you can enable MEV protection to your Jito transaction by adding the transaction data to MEV_protection = True:

`Sol

Let jito_transaction = Solana_program :: Deal :: Builder :: New ()

.Set_account_info (sender_account_info)

.Set_account_info (receiver_account_info)

.Set_TAG (“Jitotransaction”)

.Set_tag (“Pakeonly = True”)

.with_packed_bytes (

Solana_program :: Packed_array :: Massive (

// Add jito transactions as individual bytes

Solana_program :: Packed_array :: New (

Account_info :: New (

“Deal1” .To_string (),

0,

1, // transaction index

)

Account_info :: New (

“Deal2” .To_string (),

0,

1, // transaction index

)

)

// Add MEV protection bytes

Solana_program :: Packed_array :: New (

Account_info :: New (

“Mev_protection_bytes”.

لینک کوتاه

برچسب ها

ناموجود
ارسال نظر شما
مجموع نظرات : 0 در انتظار بررسی : 0 انتشار یافته : 0
  • نظرات ارسال شده توسط شما، پس از تایید توسط مدیران سایت منتشر خواهد شد.
  • نظراتی که حاوی تهمت یا افترا باشد منتشر نخواهد شد.
  • نظراتی که به غیر از زبان فارسی یا غیر مرتبط با خبر باشد منتشر نخواهد شد.