algorand / algorand/py-algorand-sdk

`round_num` and `block` no longer allowed when querying balances

オープン
#471 コメント 4 件 リアクション 0 件 担当者 1 名 @tzaffi が担当を希望しています GitHub で見る
bug
主要言語
Python
スター
274
フォーク
145
平均マージ
3時間 1分
マージ済み PR(30日)
2

説明

### Subject of the issue

### Your environment

`py-algorand-sdk 2.0.0`

### Steps to reproduce

1. Call the method `asset_balances(asset_id, round_num=number)` or `asset_balances(asset_id, block=number)`

### Expected behaviour

A balance return at the given block/round number according to the docs: https://py-algorand-sdk.readthedocs.io/en/latest/algosdk/v2client/indexer.html

### Actual behaviour

It seems like the method got changed, and doesn't allow for this parameter anymore, I believe it's a case of outdated docs or an undocumented change, since I get the following TypeErrors:

`TypeError: IndexerClient.indexer_request() got an unexpected keyword argument 'round_num'`
`TypeError: IndexerClient.indexer_request() got an unexpected keyword argument 'block'`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。