cairo-account
Generate and customize smart contract accounts for Starknet or Ethereum, enabling transaction validation, execution, and extension with custom logic, without writing to disk.
Instructions
Make a custom smart contract that represents an account that can be deployed and interacted with other contracts, and can be extended to implement custom logic. An account is a special type of contract that is used to validate and execute transactions.
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 |
---|---|---|---|
declare | No | Whether to enable the account to declare other contract classes. | |
deploy | No | Whether to enables the account to be counterfactually deployed. | |
info | No | Metadata about the contract and author | |
name | Yes | The name of the contract | |
outsideExecution | No | Whether to allow a protocol to submit transactions on behalf of the account, as long as it has the relevant signatures. | |
pubkey | No | Whether to enables the account to change its own public key. | |
type | Yes | Type of signature used for signature checking by the Account contract, Starknet account uses the STARK curve, Ethereum-flavored account uses the Secp256k1 curve. | |
upgradeable | No | Whether the smart contract is upgradeable. |