All skills

Guide for writing Python code with AlgoKit Utils (`algokit-utils`). Use this skill whenever the user is building on Algorand with Python — client setup, account management, payments, ASA operations, atomic transaction groups, smart contract deployment and interaction (AppFactory, AppClient, ARC-56/ARC-32 specs), raw app calls, TEAL compilation, key registration, network management, error handling, and the low-level crypto primitives in `algokit_crypto` (Ed25519 keygen/signing/verification, Peikert xHD BIP44 wallets, wrapped-secret patterns) and `algokit_common` (`sha512_256`). Trigger on imports from `algokit_utils` or `algokit_crypto`, references to `AlgorandClient`, `AppFactory`, `AppClient`, `AlgoAmount`, `ed25519_generator`, `peikert_hd_wallet_generator`, `sha512_256`, `WrappedEd25519Seed`, or `RawEd25519Signer`, or any Python code that builds on Algorand.

Use this Skill: https://skilld.dev/gh/algorand-devrel/algorand-agent-skills/algokit-utils-py

This session only. Nothing lands on disk.

referenceskey-registration.md

≈490 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Key registration

All snippets in this section assume an AlgorandClient named algorand — see Client initialization for setup.

Register online with participation keys

Submit a key-registration transaction that marks an account as online for consensus participation.

from algokit_utils import OnlineKeyRegistrationParams

result = algorand.send.online_key_registration(OnlineKeyRegistrationParams(
    sender=account.addr,
    vote_key="VOTEKEY_BASE64",
    selection_key="SELECTIONKEY_BASE64",
    state_proof_key=b"STATE_PROOF_KEY_64_BYTES_HERE_________________________________",
    vote_first=1,
    vote_last=3_000_000,
    vote_key_dilution=1732,
))

What just happened: You sent an online key-registration transaction via algorand.send.online_key_registration(). The six participation-key fields (vote_key, selection_key, state_proof_key, vote_first, vote_last, vote_key_dilution) come from running goal account addpartkey (or the equivalent REST endpoint) on a participation node. Once confirmed, the network treats the sender account as online and eligible to propose and vote on blocks.

Register offline (go offline)

Take an account offline so it no longer participates in consensus.

from algokit_utils import OfflineKeyRegistrationParams

result = algorand.send.offline_key_registration(OfflineKeyRegistrationParams(
    sender=account.addr,
))

What just happened: You sent an offline key-registration transaction via algorand.send.offline_key_registration(). Because no participation keys are provided, the network clears the account's registered keys and marks it as offline. The account stops proposing and voting on blocks but continues to hold its balance normally. To permanently prevent the account from ever going back online, pass prevent_account_from_ever_participating_again=True — use this with caution as it is irreversible.

Source: SKILL.md on GitHub

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a technical reference guide for the Algorand Python SDK (AlgoKit Utils). It promotes secure coding practices, including environment-based secret management and memory-safe cryptographic patterns for handling private keys. No malicious patterns or security risks were identified.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 2 issues

Signed by skilld at 4235fb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 6 months ago

README badge

README badge for algorand-devrel/algorand-agent-skills/algokit-utils-py