Stellar Account
stellar-accountGenerate a customizable smart account contract with configurable signers and policies, supporting multisig, passkeys, Ed25519, and delegated signers, returning source code as Markdown.
Instructions
Make a smart account contract that authorizes operations through configurable signers and policies, for example a multisig with passkey, Ed25519 and delegated signers.
Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Metadata about the contract and author | |
| name | Yes | The name of the contract | |
| policy | No | How authorization is decided. False requires every configured signer to sign (n-of-n). Simple threshold requires any m of the n signers (a standard multisig). Weighted threshold gives each signer a weight and requires the authorized weights to reach a threshold. Both threshold policies need the address of a deployed policy contract at deployment. | |
| upgradeable | No | Whether the account can be upgraded. The upgrade is authorized by the account itself through its context rules, not by an access control role. | |
| ed25519Signers | No | Whether the account accepts raw Ed25519 public keys, verified by an Ed25519 verifier contract supplied at deployment. | |
| webauthnSigners | No | Whether the account accepts WebAuthn (passkey) keys, verified by a WebAuthn verifier contract supplied at deployment. | |
| delegatedSigners | No | Whether the account accepts delegated signers, meaning Stellar addresses whose signatures the host verifies. Enabled by default. | |
| executionEntryPoint | No | Whether the account can call other contracts on its own behalf. Needed to manage contracts the account owns, such as its own policies, and enabled by default. |