Skip to main content

Python library for Terra Core

Project description


CircleCI codecov

Python library for Terra Core

NOTE: This is an early version and interface changes could occure until v1.0.0.

Please heads-up to the documentation for complete modules description and more details.



virtualenv -p python3.6 .venv  # if not already created
source .venv/bin/activate
pip install terra-core


poetry add terra-core


pipenv install terra-core


import os

from terra import Account
from terra import api
from terra import msg

acc = Account(os.getenv('MNEMONIC'))
# or generate a new one
# acc = Account.generate()

delegate = msg.staking.MsgDelegate(
    amount=msg.Coin(amount='10000', denom='uluna')

tx = msg.Tx(
    fee=msg.Fee('10000', [msg.Coin('2000', 'uluna')]),
    memo='Delegating my LUNA tokens',


res = tx.broadcast()

Complete api in the documentation.


To contribute to terra-py developement, please check how to contribute in the documentation

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for terra-core, version 0.8.0
Filename, size File type Python version Upload date Hashes
Filename, size terra_core-0.8.0-py3-none-any.whl (20.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size terra-core-0.8.0.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page