ICON Network using Python SDK. This document contains SDK installation, API usage guide, and code examples.Note: You’ll need to set HTTPProvider with not a full URI but a base domain URL on iconsdk 1.0.9 or later on your local development machine.
Wallet object.step_limit value in your transaction to make the submitted transaction executed successfully.estimate_step API provides a way to estimate the Step usage of a given transaction. Using the method, you can get an estimated Step usage before sending your transaction then make a SignedTransaction with the step_limit based on the estimation.step_limit of the SignedTransaction.KeyWallet and load wallet with privateKey or Keystore file.create method. After creation, the address and private key can be looked up.load method. After creation, the address and private key can be looked up.Wallet object, you can generate a keystore file on the file path by calling a store method.wallet1 to wallet2.nid is networkId; 1: mainnet, 2-: etc.step_limit is recommended by using 'default' step cost in the response of getStepCosts API.timestamp is used to prevent identical transactions. Only current time is required (Standard unit : us). If the timestamp is considerably different from the current time, the transaction will be rejected.send_transaction of IconService, you can send the transaction and check the transaction’s hash value. Finally, ICX transfer is sent.getBalance method of IconService.standard_token.zip from the sample_data folder.TEST_PRIVATE_KEY, then read the binary data from standard_token.zip by using the function gen_deploy_data_content.SCORE_INSTALL_ADDRESS uses cx0000000000000000000000000000000000000000 to deploy SCORE.step_limit is put by max step limit for sending transaction.params enters the basic information of the token you want to deploy. It must enter the given values, 'initialSupply' data. Otherwise, your transaction will be rejected.IconService Token transfer is now completed.icx_transaction_example.TEST_PRIVATE_KEY just like in the case of icx_transaction_example, then send 1 Token to the other wallet. You need the token SCORE address to send your token.nid is networkId; 1: mainnet, 2-: etc.step_limit is recommended by using 'default' step cost multiplied by 2 in the response of getStepCosts API.timestamp is used to prevent identical transactions. Only current time is required (Standard unit : us). If the timestamp is considerably different from the current time, the transaction will be rejected.method is 'transfer' in this case.params You must enter the given key name('_to', '_value'). Otherwise, the transaction will be rejected.SignedTransaction to add a signature to your transaction.sendTransaction of IconService to check the transaction hash. Token transaction is sent.icx_transaction_example.balanceOf from the token SCORE.method is 'balanceOf' in this caseparams should be put with '_owner' data. Otherwise, your transaction will be rejected.name andsymbol functions.