Explain smart contract functions in plain language
Explain smart contract functions in simple terms.
**Contract Address/Code:** ${{CONTRACT}}
**Function Name:** ${{FUNCTION}}
**Explanation Depth:** ${{DEPTH}}
Generate explanation:
**Function Overview:**
- What it does (simple terms)
- When you would use it
- Who can call it
**Technical Details:**
- Function signature
- Parameters explained
- Return values
- State changes
**Example Usage:**
```
// Code example
```
**Gas Considerations:**
- Estimated gas cost
- Factors affecting gas
- Optimization tips
**Security Notes:**
- Access controls
- Potential risks
- Best practices
**Common Mistakes:**
- What could go wrong
- How to avoid issues
- Recovery options
**Related Functions:**
- Functions often used together
- Alternatives
- Dependencies
**Real-World Analogy:**
Simple analogy explaining the concept
**Before You Call:**
Checklist:
- [ ] Verify contract address
- [ ] Understand parameters
- [ ] Check gas price
- [ ] Have enough balance
- [ ] Test with small amount
**FAQ:**
Common questions about this function
**Resources:**
- Documentation links
- Similar implementations
- Learning resourcesOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CONTRACT][{FUNCTION][{DEPTH]