Price Feeds
get_update_fee

Get Update Fee

Get the fee required to update the on-chain price feeds with the provided update_data. The returned number of Octa should be sent as the transaction value when calling update_price_feeds.

The update_data can be retrieved from the Hermes API (opens in a new tab). By default, the data is returned as a base64-encoded string that you must deserialize into a vector of bytes before calling this method.

ArgumentInputDescription

update_data*

vector<vector<u8>>

The price updates that you would like to submit to update_price_feeds
Examples

Example Code

use pyth::pyth;
use pyth::price_identifier;
 
pyth::get_update_fee(
  vec![<update_data>]
);
Last updated on