Market

Using lightsteem to interact with the HF20 Testnet

3 comments

emrebeyler
70
3 months agoBusy

Steemit team announced the HF20 testnet. If you're a lightsteem user and want to interact with the HF20 testnet:

  • Upgrade to the latest version:
$ (sudo) pip install lightsteem --upgrade

  • Start the Client with a custom chain parameter:
from lightsteem.client import Client

c = Client(
    nodes=["https://testnet.steemitdev.com"],
    chain=dict(
        chain_id="46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32",
        prefix="TST",
    ),
)

You're all set.

Note: chain_id is subject to change with next iterations. You may consider injecting it dynamically via get_config (rpc call) and set it to the Client instance to keep it fresh always. (as suggested on the announcement post.)

Comments

Sort byBest