From b37f7f7ca1e0e4cccb57ee82c59a7eb7f00d9afc Mon Sep 17 00:00:00 2001 From: nischit Date: Tue, 18 Nov 2025 00:16:16 +0545 Subject: [PATCH] disable insight rpc --- internal/rpc/rpc.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/rpc/rpc.go b/internal/rpc/rpc.go index 6910d9f..f1146c9 100644 --- a/internal/rpc/rpc.go +++ b/internal/rpc/rpc.go @@ -71,7 +71,16 @@ func Initialize() (IRPCClient, error) { return nil, fmt.Errorf("RPC_URL environment variable is not set") } log.Debug().Msg("Initializing RPC") - rpcClient, dialErr := gethRpc.Dial(rpcUrl) + + ctx := context.Background() + + // Initialize RPC client with custom header to disable insight RPC tracking + rpcClient, dialErr := gethRpc.DialOptions( + ctx, + rpcUrl, + gethRpc.WithHeader("x-disable-insight-rpc", "true"), + ) + if dialErr != nil { return nil, dialErr }