We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e763311 commit 95ed0f9Copy full SHA for 95ed0f9
src/server/handlers/private-api.ts
@@ -688,7 +688,13 @@ const broadcastTronTransaction = async (
688
node: ChainstackNode,
689
signedPayload: string,
690
): Promise<ChainBroadcastResponse> => {
691
- const endpoint = ensureHttpsEndpoint(node).replace(/\/+$/, "");
+ const baseEndpoint =
692
+ node.details?.solidity_http_api_endpoint?.replace(/\/+$/, "") || ensureHttpsEndpoint(node).replace(/\/+$/, "");
693
+
694
+ const endpoint = baseEndpoint.endsWith("/jsonrpc")
695
+ ? baseEndpoint.slice(0, -"/jsonrpc".length)
696
+ : baseEndpoint;
697
698
const config = buildNodeAxiosConfig(node);
699
700
const normalizedPayload = signedPayload.startsWith("0x") ? signedPayload.slice(2) : signedPayload;
0 commit comments