@@ -102,11 +102,15 @@ await transactionBuilder.addPriceConsumerInstructions(
102102
103103// Send the instructions in the builder in 1 or more transactions.
104104// The builder will pack the instructions into transactions automatically.
105- await pythSolanaReceiver .provider .sendAll (
105+ // We use some custom transactions dispatch logic instead of the simple `provider.sendAll` to increase landing rate,
106+ // feel free to use your own optimized logic.
107+ sendTransactions (
106108 await transactionBuilder .buildVersionedTransactions ({
107109 computeUnitPriceMicroLamports: 100000 ,
108110 tightComputeBudget: true ,
109- })
111+ }),
112+ pythSolanaReceiver .connection ,
113+ pythSolanaReceiver .wallet
110114);
111115```
112116
@@ -139,11 +143,15 @@ await transactionBuilder.addPriceConsumerInstructions(
139143
140144// Send the instructions in the builder in 1 or more transactions.
141145// The builder will pack the instructions into transactions automatically.
142- await pythSolanaReceiver .provider .sendAll (
146+ // We use some custom transactions dispatch logic instead of the simple `provider.sendAll` to increase landing rate,
147+ // feel free to use your own optimized logic.
148+ sendTransactions (
143149 await transactionBuilder .buildVersionedTransactions ({
144150 computeUnitPriceMicroLamports: 100000 ,
145151 tightComputeBudget: true ,
146- })
152+ }),
153+ pythSolanaReceiver .connection ,
154+ pythSolanaReceiver .wallet
147155);
148156```
149157
0 commit comments