get_info method programmatically.
Using TON Explorers
- Open Tonviewer.
- Enter the contract address into the search field.
- Navigate to the Code tab.
- The Bytecode section contains the contract code.
- The Raw data section contains the contract data.
Using the get_info Method
info.code and info.data are None for contracts that are not deployed. The raw hex-encoded BoC strings are also available directly as info.code_raw and info.data_raw.
See also ContractInfo Fields Overview.