You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use quiknode rpc (use paid node)
drift_client = DriftClient(
connection,
wallet,
"mainnet",
account_subscription=AccountSubscriptionConfig("websocket"),
tx_params=TxParams(300_000, 100_000),
active_sub_account_id=sub_account_id,
)
await drift_client.subscribe()
http status is 400, trace the source find that https://github.com/drift-labs/driftpy/blob/master/src/driftpy/constants/config.py#L137
if change head to headers={"Content-Type": "application/json"}, it work ok.
The text was updated successfully, but these errors were encountered:
use quiknode rpc (use paid node)
drift_client = DriftClient(
connection,
wallet,
"mainnet",
account_subscription=AccountSubscriptionConfig("websocket"),
tx_params=TxParams(300_000, 100_000),
active_sub_account_id=sub_account_id,
)
await drift_client.subscribe()
http status is 400, trace the source find that
https://github.com/drift-labs/driftpy/blob/master/src/driftpy/constants/config.py#L137
if change head to headers={"Content-Type": "application/json"}, it work ok.
The text was updated successfully, but these errors were encountered: