NEAR Lake 인덱서 기본 튜토리얼
Source code for the tutorial
frolvanya/near-lake-raw-printer
: source code for the tutorial on how to create an indexer that prints block height and number of shards
Recently we have published a Python version of the NEAR Lake Framework on pypi.org
We want to empower you with a basic tutorial on how to use the Python Package. Let's get started!
프로젝트 생성
Create an indexer project:
mkdir near-lake-raw-printer && cd near-lake-raw-printer
touch main.py
의존성(dependency) 설치
Install near-lake-framework
pip3 install near-lake-framework
near-lake-framework
가져오기
In the main.py
file let's import the necessary dependencies:
from near_lake_framework import near_primitives, LakeConfig, streamer
We've imported the main function streamer
, which will be called to actually run the indexer, near_primitives
, and LakeConfig
type we need to construct.