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 a8cac5c commit 8343bf2Copy full SHA for 8343bf2
internal/rpc/rpc.go
@@ -71,7 +71,16 @@ func Initialize() (IRPCClient, error) {
71
return nil, fmt.Errorf("RPC_URL environment variable is not set")
72
}
73
log.Debug().Msg("Initializing RPC")
74
- rpcClient, dialErr := gethRpc.Dial(rpcUrl)
+
75
+ ctx := context.Background()
76
77
+ // Initialize RPC client with custom header to disable insight RPC tracking
78
+ rpcClient, dialErr := gethRpc.DialOptions(
79
+ ctx,
80
+ rpcUrl,
81
+ gethRpc.WithHeader("x-disable-insight-rpc", "true"),
82
+ )
83
84
if dialErr != nil {
85
return nil, dialErr
86
0 commit comments