ICON Developer Portal

ICON Developer Portal

ICON Network is a decentralized smart contract protocol based on ‘loopchain’, a high-performance blockchain engine. The ICON Network aims to remove barriers among different blockchains and allow them to exchange values without intermediaries. By realizing this goal, ICON will realize the mass adoption of blockchain technology and Hyperconnect the World.

Get Started

Development Tools

T-Bears Development Suite

Before you start writing a SCORE, you need to install the T-Bears. T-Bears provides the followings;

  • Essential libraries for SCORE development, iconservice
  • Local emulated node environment, T-Bears Server
  • CLI commands for deploying a SCORE and invoking the SCORE functions, T-Bears CLI
  • SCORE test framework

For the details of T-Bears, please go to T-Bears Overview

If you have finished the SCORE Quickstart, you must have the T-Bears installed. If not, please refer to the T-Bears Installation instruction.

IDE - PyCharm

Because SCORE is written in Python, any IDE that supports python can be used for the SCORE development. In this document, we will explain how to set up and initialize a SCORE project in PyCharm.
We assume that you are familiar with Python development.

Install PyCharm CE, if you don't have it yet.

Create a Python project

Create new project

Currently (as of 2019. May), T-Bears only works on Python 3.6. When you set the base interpreter, make sure you are using Python 3.6.

  • If you are using PyCharm Professional, you can configure T-Bears Docker as a remote interpreter.

Select Python 3.6 as a base interpreter

Install T-Bears using PIP

Reference: T-Bears Installation

Install dependencies

On macOS (Homebrew)

# install develop tools
$ brew install leveldb
$ brew install autoconf automake libtool pkg-config

# install RabbitMQ and start service
$ brew install rabbitmq
$ brew services start rabbitmq

On Linux (apt-get)

# Install levelDB
$ sudo apt-get install libleveldb1 libleveldb-dev
# Install libSecp256k
$ sudo apt-get install libsecp256k1-dev

# install RabbitMQ and start service
$ sudo apt-get install rabbitmq-server

Install T-Bears using pip

pip install tbears

After finishing installation, you can check the T-Bears version using tbears -v command.

Create a SCORE project

You can create a SCORE project using T-Bears CLI command init.

tbears init score_w_pycharm ScoreWithPycharm

Create a SCORE project using tbears init command.

On the left pane, you will find the SCORE project template has been created.

Write your code

New SCORE project has been successfully created. Select the main class file and start writing code on PyCharm.

Enjoy the IDE features such as autocompletion and code reference information.

Updated about a year ago

Development Tools

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.