Skip to content

Commit 11d7c32

Browse files
author
Eunsoo Park
committed
Update README.md
1 parent 8a66dda commit 11d7c32

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ call = CallBuilder().from_(wallet.get_address())\
122122
.to("cx000...1")\
123123
.method("balance_of")\
124124
.params({"address": "hx000...1"})\
125+
.height(100)\
125126
.build()
126127

127128
# Executes a call method to call a read-only API method on the SCORE immediately without creating a transaction
@@ -185,7 +186,7 @@ block = icon_service.get_block("latest")
185186
### get_balance
186187

187188
```python
188-
get_balance(address: str)
189+
get_balance(address: str, height: int = None)
189190
```
190191

191192
Returns the ICX balance of the given EOA or SCORE
@@ -196,6 +197,8 @@ Delegates to **icx_getBalance** RPC method
196197

197198
address : An address of EOA or SCORE
198199

200+
height(optional) : Block height
201+
199202
#### Returns
200203

201204
Number of ICX coins
@@ -218,7 +221,7 @@ balance = icon_service.get_balance("hx000...1")
218221
### get_score_api
219222

220223
```python
221-
get_score_api(address: str)
224+
get_score_api(address: str, height: int = None)
222225
```
223226

224227
Returns SCORE's external API list
@@ -229,6 +232,8 @@ Delegates to **icx_getScoreApi** RPC method
229232

230233
address : A SCORE address to be examined
231234

235+
height(optional) : Block height
236+
232237
#### Returns
233238

234239
A list of API methods of the SCORE and its information
@@ -264,7 +269,7 @@ score_apis = icon_service.get_score_api("cx000...1")
264269
### get_total_supply
265270

266271
```python
267-
get_total_supply()
272+
get_total_supply(height: int = None)
268273
```
269274

270275
Returns total ICX coin supply that has been issued
@@ -273,7 +278,7 @@ Delegates to **icx_getTotalSupply** RPC method
273278

274279
#### Parameters
275280

276-
None
281+
height(optional) : Block height
277282

278283
#### Returns
279284

0 commit comments

Comments
 (0)