from iconsdk.builder.call_builder import CallBuilder
# Returns block information by block height
block = icon_service.get_block(1000)
# Returns block information by block hash
block = icon_service.get_block("0x000...000")
# Returns the last block information
block = icon_service.get_block("latest")
# Returns the balance of the account of given address
balance = icon_service.get_balance("hx000...1")
# Returns a list of the SCORE APIs
score_apis = icon_service.get_score_api("cx000...1")
# Returns the total supply of ICX
total_supply = icon_service.get_total_supply()
# Returns information about a transaction requested by transaction hash
tx = icon_service.get_transaction("0x000...000")
# Returns the result of a transaction by transaction hash
tx_result = icon_service.get_transaction_result("0x000...000")
# Generates a call instance using the CallBuilder
call = CallBuilder().from_(wallet.get_address())\
.params({"address": "hx000...1"})\
# Executes a call method to call a read-only API method on the SCORE immediately without creating a transaction on Loopchain
result = icon_service.call(call)