algorand / algorand/py-algorand-sdk

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

未關閉
#471 4 則留言 0 個 reaction 已指派 1 人 已被 @tzaffi 認領 在 GitHub 檢視
bug
主要語言
Python
星號
274
分支
145
平均合併
3 小時 1 分鐘
30 天內合併 PR
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 摘要。