Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

challenge completed #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

nextdangote
Copy link

This code is a Python script that interacts with the Algorand blockchain to perform a series of actions involving the creation and transfer of an asset. Here's a brief summary of what the script does:

Connect to Local Algorand Network: The script first establishes a connection to a local Algorand network (localnet) using AlgorandClient.

Account Creation and Funding:
    It generates a random account (creator) and fetches its information.
    It then funds this creator account with 10 Algos from a dispenser account.

Asset Creation:
    The script creates a new asset called "Edu4Teen" (with the unit name "E4T") with a total supply of 100 units.
    It captures the asset ID from the transaction confirmation.

Additional Account Funding:
    Another account, receiver_accnt, is funded with 10 Algos from the dispenser account.

Group Transaction:
    The script constructs a group transaction, which includes:
        Opting the receiver_accnt into holding the newly created asset.
        Sending 10 Algos from receiver_accnt back to the creator account.
        Transferring 10 units of the "Edu4Teen" asset from the creator account to receiver_accnt.
    The group transaction is then executed.

Final Output:
    The script prints the balances and asset holdings of both the creator and receiver_accnt after the group transaction is executed.

This script demonstrates how to programmatically manage accounts, create and transfer assets, and execute group transactions on the Algorand blockchain using Python.

@Ganainmtech Ganainmtech added the Challenge Completed Edu4Teen Edu4Teen Workshop label Sep 2, 2024
@Ganainmtech
Copy link
Owner

Well done on attending the Algorand Developer Workshop and completing the live coding!! Please use the magic link below to claim your Verifiable Credential Certificate NFT and some attached ALGOs. We recommend setting up your Pera Wallet (In your app store!) to claim - you don't need a prior balance its free! :)

Don't stop your algodev journey now - its just beginning! Join the active Algorand Discord here, and check out the best blockchain dev experience with AlgoKit here.

Magic Link:
https://goplausible.xyz/claim/5s4fj1kxqyq20zr8kf8z3hc86nyp1cndrd2jkp9fybwb4tbswrdnv1ae09nz7bpf9e0q08726rwv6kkarby93qk45g6vy7kxm8km230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants