Interacting with Local Terra Smart Contracts Using Python
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":
...