Posts

Showing posts with the label Terrablockchain

Interacting with Terra Network Using Terra Python SDK

Image
In this article, we are going to get familiar with the Terra network and how it works. Then, we will see how we can interact with the Terra network using Terra Python SDK to interact with Terra Testnet called Bombay 12 and Mainnet called Columbus-5. In this article and the next ones, we are going to see how we can connect to the Terra network using Python, create an account and a wallet, create and sign a transaction, estimate gas fees, and swap tokens. What Is Terra SDK? Terra is a DeFi protocol on Blockchain that powers the universal payment systems which are based on fiat currencies using the fiat-based stable coins. This protocol uses a mixture of wide adoption of stable coins and at the same time censorship resistance of Bitcoin. Terra is built on Cosmos SDK and tendermint. The main language that the Terra smart contracts are written in, is Rust. However, there are SDKs for Python and JavaScript, and creating the smart contracts called WASM contracts is explained i...

Interacting with Local Terra Smart Contracts Using Python

Image
In this article, we first connect to local Terra using Docker. Then we try to interact with local Terra smart contracts using Python scripts and at the same time use the CosmWasm functions inside LocalTerra\src folder written in Rust programming language. Finally, we will manage to interact with it. Connecting to Local Terra with Docker with Python First off, To start our interaction with local Terra, we need to make sure docker is running: Coppied to clipboard. sudo usermod -aG docker $USER Make sure you sign in to your docker profile to be able to easily log in using the following command docker login . Coppied to clipboard. docker-compose up Result: Coppied to clipboard. terrad_1 | 8:48PM INF received proposal module=consensus proposal="Type":32,"block_id":"hash":"3F119B6520D17CCC29A23F016B9E40151E3A5784A3F83D65BD0DD2D282FB1A4F"," parts": ...