Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/pages/sdk/unity/read-from-blockchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,14 @@ GetTransactionHistoryReturn history = await chainIndexer.GetTransactionHistory(
```

The `TransactionHistoryFilter` object allows you to specify how you want to filter your transaction history query, e.g. by account address(es), contract address(es), etc. More info [here](/api/indexer/examples/transaction-history).

## Get Token Prices

To fetch the price of a given token, you'll want to use the `PriceFeed`:

```
PriceFeed priceFeed = new PriceFeed();
TokenPrice[] prices = await priceFeed.GetCoinPrices(
new PriceFeed.Token(Chain.Polygon, polygonUSDCContractAddress),
new PriceFeed.Token(Chain.ArbitrumNova, arbitrumNovaUSDCContractAddress));
```