Skip to content

API ReferencePricing and oraclesFunction

getOraclePriceUpdateFee()

function getOraclePriceUpdateFee(ctx, params): Promise<bigint>;

Gets the Pyth Oracle Price update fee for the provided price update bytes.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetOraclePriceUpdateFeeParamsThe parameters indicating the update.

Returns

Promise<bigint>

The oracle price update fee.