Error Codes & Messages
π― Error Code Reference
Code
Name
Description
When It Occurs
π¦ Error Object Structure
Standard Phantom-Compatible Format
{
code: -32003, // Error code (same as Phantom)
message: "Jelli does not recognize a valid transaction.", // Jelli-branded message
name: "TransactionRejectedError" // Error type name
}Enhanced Jelli Format
π‘οΈ Handling Errors Properly
Basic Error Handling
Advanced Error Handling with Jelli Enhancements
π¨ Common Error Scenarios
1. User Rejection (4001)
2. Wallet Not Connected (4100)
3. Invalid Transaction (-32003)
4. Resource Not Available (-32002)
π§ Error Prevention Best Practices
1. Always Check Connection
2. Validate Transactions
3. Implement Retry Logic
Last updated