Core Features
-
Game Mechanics
- Three choices: rock, paper, scissors
- Multiple bet sizes
- Automated opponent
- Instant outcomes
-
Prize System
- SEND token rewards
- Automated claiming
- Transaction verification
- Multi-step collection
Usage
Parameters
Parameter | Type | Required | Values | Description |
---|---|---|---|---|
amount | number | Yes | 0.005, 0.01, 0.1 | Bet amount in SOL |
choice | string | Yes | ”rock”, “paper”, “scissors” | Player’s move |
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
Game Flow
-
Game Initiation
-
Outcome Resolution
-
Prize Claiming
Implementation Details
Game Process
Error Handling
Best Practices
-
Game Strategy
- Verify SOL balance
- Start with small bets
- Monitor outcomes
- Track winnings
-
Transaction Management
- Wait for confirmations
- Handle timeouts
- Monitor failures
- Verify claims
-
Prize Collection
- Confirm receipts
- Track transactions
- Monitor balances
- Save signatures
-
Error Recovery
- Handle timeouts
- Retry claims
- Monitor status
- Save game IDs
Common Issues
-
Game Initiation
- Invalid bet amounts
- Insufficient balance
- Network issues
- Timeout errors
-
Outcome Resolution
- Transaction failures
- Confirmation delays
- Status errors
- Connection issues
-
Prize Collection
- Claim failures
- Transaction errors
- Timeout issues
- Balance updates
Game Mechanics
Bet Amounts
- 0.005 SOL (minimum)
- 0.01 SOL (medium)
- 0.1 SOL (maximum)
Winning Combinations
- Rock beats Scissors
- Paper beats Rock
- Scissors beats Paper
Prize Structure
- Win: Receive SEND tokens
- Loss: Lose bet amount
- Tie: Return bet amount
Transaction Flow
- Place Bet
- Resolve Outcome
- Claim Prize
Related Functions
getBalance
: Check SOL balancegetSendBalance
: Check SEND balancetransfer
: Transfer tokensgetGameHistory
: View past games
Notes
-
Game Rules
- One game at a time
- Fixed bet amounts
- Instant resolution
- Automated opponent
-
Prize Details
- SEND token rewards
- Automatic claiming
- Instant distribution
- Balance updates
-
Security Tips
- Verify transactions
- Check amounts
- Monitor outcomes
- Save records