Update README.md (#1526)

* Update README.md

changed method doc

* Update README.md

---------

Co-authored-by: guibescos <59208140+guibescos@users.noreply.github.com>
This commit is contained in:
cipherZ 2024-05-01 10:20:02 -04:00 committed by GitHub
parent 344f8a9e47
commit 3d9781ed58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const priceIds = [
const currentPrices = await connection.getLatestPriceFeeds(priceIds);
// You can also call this function to get price updates for the on-chain contract directly.
const priceUpdateData = await connection.getPriceFeedsUpdateData(priceIds);
const priceUpdateData = await connection.getLatestVaas(priceIds);
```
`PriceServiceConnection` also allows subscribing to real-time price updates over a websocket connection: