@clonegod/ttd-sol-common 1.0.57 → 1.0.58

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.
@@ -573,7 +573,10 @@ class RpcClient {
573
573
  let txid = (0, get_signature_1.getSignature)(transaction);
574
574
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
575
575
  const serializedTransaction = bs58_1.default.encode(transaction.serialize());
576
- const jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/bundles`;
576
+ let jitoApiUrl = `${types_1.JITO_API_URLS[region]}/api/v1/bundles`;
577
+ if (process.env.QUICKNODE_JITO_PLUGIN_URL) {
578
+ jitoApiUrl = process.env.QUICKNODE_JITO_PLUGIN_URL;
579
+ }
577
580
  const bundleId = yield this.sendJitoBundle([serializedTransaction], jitoApiUrl);
578
581
  (0, dist_1.log_info)(`sendJitoBundle`, {
579
582
  txid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",