Compilation and deploy on network - General - Algorand

Compilation and deploy on network

post by isha on Sep 15, 2021

Hi all,

I have written a smart contract in pyteal and got its teal code for but now I am confused how to compile it and deploy on the network please help

The code is this:

#pragma version 2
txn TypeEnum
int pay
==
global GroupSize
int 1
==
&&
txn Receiver
addr VMWNTFZJI7U3OOPDJGVPVMTN2GEM3UIPCMNXPORBCEKGR4IZ5JFJ422AMU
==
&&
txn CloseRemainderTo
global ZeroAddress
==
&&
txn CloseRemainderTo
global ZeroAddress
==
&&
txn Fee
int 1000
<=
&&
return

(Edited to put the code in triple backquote ``` which makes it much easier to read).

post by barnji on Sep 15, 2021

Hi Isha,

You’d want to sign a txn with the logic and submit it to the network, please refer to this section of the docs for some more details and examples:

post by isha on Sep 16, 2021

Oh okay I’ll check that.

Thank you!