Transactions
The SDK simplifies transaction building, signing, and submission. All complexity is handled automatically.Send Native Token Transfer
Send a simple native token (ETH, SOL, etc.) transfer:Send ERC-20 Token Transfer
Transfer ERC-20 tokens:Send Custom Transaction
For more complex transactions, use the custom transaction builder:Sign Message
Sign a message (EIP-191):Sign Typed Data
Sign EIP-712 typed data:Get Transaction Status
Check transaction status:List Transactions
Get transaction history:Transaction Events
Listen for transaction status updates:Wait for Confirmation
Wait for a transaction to be confirmed:Estimate Gas
Estimate gas for a transaction before sending:Error Handling
Best Practices
User Experience
User Experience
- Show loading states during transaction submission
- Display transaction hash for user reference
- Provide clear error messages
- Show transaction status updates in real-time
Gas Management
Gas Management
- Let SDK handle gas estimation (default)
- Only override gas if you have specific requirements
- Use EIP-1559 for better fee management
Error Recovery
Error Recovery
- Handle insufficient balance errors gracefully
- Retry failed transactions if appropriate
- Show user-friendly error messages