We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a58d0 commit 41bdadfCopy full SHA for 41bdadf
src/worker/tasks/processTx.ts
@@ -20,6 +20,7 @@ import {
20
} from "../../server/schemas/transaction";
21
import { sendBalanceWebhook } from "../../server/utils/webhook";
22
import { getSdk } from "../../utils/cache/getSdk";
23
+import { env } from "../../utils/env";
24
import { logger } from "../../utils/logger";
25
import { randomNonce } from "../utils/nonce";
26
@@ -201,6 +202,11 @@ export const processTx = async () => {
201
202
method: "POST",
203
headers: {
204
"Content-Type": "application/json",
205
+ ...(provider.connection.url.includes("rpc.thirdweb.com")
206
+ ? {
207
+ "x-secret-key": env.THIRDWEB_API_SECRET_KEY,
208
+ }
209
+ : {}),
210
},
211
body: JSON.stringify(rpcRequests),
212
});
0 commit comments