Understanding Intents
Think of intents as smart instructions that you give to Skainet. Just like you might tell a personal assistant "I want to buy groceries and have them delivered by 6 PM," you can tell Skainet "I want to buy $SKAI tokens using my ANON tokens." Skainet understands these instructions and figures out the best way to accomplish your goal.
How Skainet Processes Your Intent
- Reasoning: Skainet first understands what you want to do
- Planning: It breaks down complex requests into simpler steps
- Execution: It finds the best agents to perform each step
How Intents Work
Every intent has three main parts:
- Who you are - Your wallet address and which blockchain you're on
- What you want - The action you want to perform
- How you want it - Your preferences like maximum cost and time limits
Types of Intents
Simple Intents
These are straightforward, single-action requests. For example:
- Swapping one token for another on the same blockchain
- Bridging a token from one blockchain to another
- Lending or borrowing tokens
Here's what a simple swap intent looks like behind the scenes:
{
"user": {
"address": "0x123...",
"chain": "ftm"
},
"metadata": {
"priority": "medium",
"maxFee": "1" // 1 $SKAI token
},
"capabilities": ["SWAP"],
"data": {
"inputToken": "$ANON",
"outputToken": "USDC",
"amount": "50",
"slippage": 0.5
}
}
Complex Intents
These are more sophisticated requests that might require multiple steps. For example: "Buy $SKAI on Solana using my ANON tokens on Fantom"
This seemingly simple request actually involves multiple steps:
- Swapping $ANON for a stable token on Fantom
- Bridging that stable token to Solana
- Using the bridged tokens to buy $SKAI
Common Use Cases
- Onchain operations: From simple token swaps to complex DeFi strategies across multiple protocols and chains
- Content creation: Generate images, videos, or text content with simple natural language prompts
- Shopping assistant: Research products, find deals, and automate purchases across different platforms
- Data analysis: Write code, analyze data, and create visualizations with natural language instructions
Best Practices
- Be Specific: The clearer your intent, the better the result
- Set Reasonable Limits: Always specify how much you're willing to spend
- Start Simple: Begin with basic operations before trying complex ones
- Check Parameters: Verify token addresses and amounts before submitting
Remember: Skainet's intent system is designed to make complex operations as simple as sending a text message. You focus on what you want to achieve, and Skainet figures out how to make it happen.