API ReferencePricing and oraclesFunction
getPriceFeedId()
function getPriceFeedId(ctx, params): Promise<string>;Gets the Price Feed ID for the specified token. Tries the on-chain PythPriceOracle first; falls back to the Pyth Hermes API if not found.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetPriceFeedIdParams | The token address to look up. |
Returns
Promise<string>
The price feed ID.