@clonegod/ttd-sol-common 2.0.28 → 2.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trade/send/jito.js
CHANGED
|
@@ -94,7 +94,9 @@ const sendBundleWithJito = async (mainTx, tipTx) => {
|
|
|
94
94
|
};
|
|
95
95
|
try {
|
|
96
96
|
const response = await client.post(url, requestData);
|
|
97
|
-
|
|
97
|
+
const bundleId = response.data.result;
|
|
98
|
+
console.log(`[sendBundleWithJito] bundleId: ${bundleId}`);
|
|
99
|
+
return bundleId;
|
|
98
100
|
}
|
|
99
101
|
catch (error) {
|
|
100
102
|
if (error instanceof axios_1.AxiosError) {
|
package/package.json
CHANGED
package/src/trade/send/jito.ts
CHANGED
|
@@ -76,7 +76,10 @@ export const sendBundleWithJito = async (mainTx: Transaction, tipTx: Transaction
|
|
|
76
76
|
// id: 1
|
|
77
77
|
// }
|
|
78
78
|
// console.dir(response.data, { depth: null })
|
|
79
|
-
|
|
79
|
+
const bundleId = response.data.result;
|
|
80
|
+
console.log(`[sendBundleWithJito] bundleId: ${bundleId}`);
|
|
81
|
+
|
|
82
|
+
return bundleId;
|
|
80
83
|
} catch (error) {
|
|
81
84
|
if(error instanceof AxiosError) {
|
|
82
85
|
// 提取关键错误信息
|