Documentation
    Preparing search index...

    Interface PythConfig

    State objects identifying the Pyth deployment margin prices against.

    interface PythConfig {
        accessToken?: string;
        hermesEndpoint?: string;
        pythStateId: string;
        wormholeStateId: string;
    }
    Index

    Properties

    accessToken?: string

    Bearer token for the Hermes endpoint. The one serving Pyth's upgraded Core answers 401 without it, so pushing price updates needs this set.

    Prefer the client-level pythAccessToken option, which sets this without having to restate the state object ids. Supply the token at runtime — do not commit it.

    hermesEndpoint?: string

    Hermes endpoint serving update data for this deployment.

    pythStateId: string
    wormholeStateId: string