InjectiveLabs / sdk-python

Injective Exchange API for Python clients
Apache License 2.0
41 stars 27 forks source link

3rd Party RPC #303

Closed sherlock-tez closed 4 months ago

sherlock-tez commented 8 months ago

What config should I use when I want to use other RPC. For example: https://injective-rpc.publicnode.com/

injective-grpc.publicnode.com:443

When I use this code

lcd_endpoint = "https://injective-rest.publicnode.com" tm_websocket_endpoint = "wss://injective-rpc.publicnode.com:443/websocket" grpc_endpoint = "injective-grpc.publicnode.com:443" grpc_exchange_endpoint = "sentry.exchange.grpc.injective.network:443" grpc_explorer_endpoint = "sentry.explorer.grpc.injective.network:443" cookie_assistant = BareMetalLoadBalancedCookieAssistant() use_secure_connection = True

It errors: Error fetching chain cookie (Metadata(()))

aarmoa commented 4 months ago

You should check that with each RPC provider. Configuration will be different for each of them