Skip to content

Algorand Python

Write Algorand smart contracts using native Python syntax. Algorand Python compiles your Python code to AVM bytecode via the Puya compiler.

from algopy import ARC4Contract, arc4
class HelloWorld(ARC4Contract):
@arc4.abimethod
def hello(self, name: arc4.String) -> arc4.String:
return "Hello, " + name