Documentation
    Preparing search index...

    Interface PythConfig

    State objects identifying the Pyth deployment margin prices against.

    interface PythConfig {
        hermesEndpoint?: string;
        hermesHeaders?: Record<string, string>;
        pythStateId: string;
        wormholeStateId: string;
    }
    Index

    Properties

    hermesEndpoint?: string

    Hermes endpoint serving update data for this deployment.

    hermesHeaders?: Record<string, string>

    Headers sent with every Hermes request. The endpoint serving Pyth's upgraded Core requires an Authorization: Bearer <token> header and answers 401 without one, so pushing price updates needs this set.

    Supply the token at runtime — do not commit it. There is no default.

    pythStateId: string
    wormholeStateId: string