Skip to main content

Jigu - The Python SDK for Terra

Jigu (지구, or Earth in Korean) is the official Python SDK (Software Development Kit) for Terra, which allows developers to write software that integrates with the blockchain and its ecosystem. You can find the official documentation at our SDK docs site.

Quick Start

Note: Requires Python v3.6+. Python 2 is not supported, as support for it discontinued on Jan 01, 2020.

First, install the library off PyPI.

$ pip install jigu

Jigu makes it easy to interact with a node running terra-core.

from jigu import Terra
from jigu.networks import SOJU
from jigu.wallet import Wallet

from jigu.core.denoms import MicroLuna

wallet = Wallet.generate() # create a random wallet
terra = Terra(**SOJU) # connect to soju testnet

# check my balances!
luna = terra.account(wallet.address).balances[MicroLuna]

A Tour of Jigu

The Terra instance

The jigu.Terra instance represents your connection parameters for contacting a node, and provides an intuitive, pythonic interface for accessing data on the Terra blockchain. By default, it will connect to Columbus-3 mainnet.

>>> from jigu import Terra
>>>
>>> terra = Terra()
Node(https://lcd.terra.dev -> columbus-3)

Accounts

>>> gazua = terra.account("terra1rf9xakxf97a49qa5svsf7yypjswzkutqfclur8")
>>> gazua.address
'terra1rf9xakxf97a49qa5svsf7yypjswzkutqfclur8'
>>> gazua.validator
Validator(terravaloper1rf9xakxf97a49qa5svsf7yypjswzkutqfhnpn5)
>>> gazua.validator.val_address
'terravaloper1rf9xakxf97a49qa5svsf7yypjswzkutqfhnpn5'

History

0.0.1 (2020-01-23)

  • Initial prototype structure

Metadata

Release files for silt 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for silt 0.0.12
File Size Uploaded
silt-0.0.12.tar.gz 32.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for silt 0.0.12
File Interpreter ABI Platform
silt-0.0.12-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 74.4 kB

Release files / silt-0.0.12.tar.gz

Download URL silt-0.0.12.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c27e3fa3cf8d1c004c987f4205e66f8e64cf56e3ed093da0782a26d425f80986
BLAKE2b-256 checksum
How to use checksums
a15bf54a4c115722f6f186f772386b9c757dc5e4592802b999ab4147dcab60b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / silt-0.0.12-py2.py3-none-any.whl

Download URL silt-0.0.12-py2.py3-none-any.whl
Size 42.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d78c2a3c334d4cf05a20b7ddd59eebf9ecdd3cd3032430bd48da0db70ed660c0
BLAKE2b-256 checksum
How to use checksums
86b307e1859f2431ff036e37d642cc78531bb570c55ad6643418a154e76e416c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page