API Reference
Table of Contents
Detecting eckoWALLET
Check Installation
const isEckoWalletInstalled = () => {
const { kadena } = window;
return Boolean(kadena && kadena.isKadena);
};
// Initialize your dApp
const initialize = async () => {
if (isEckoWalletInstalled()) {
console.log('eckoWALLET is installed!');
// Proceed with wallet integration
} else {
console.log('eckoWALLET not found');
// Show installation prompt
}
};
// Wait for page to load
window.addEventListener('load', initialize);Detection Best Practices
Connection Management
kda_connect
kda_disconnect
kda_checkStatus
kda_checkIsConnected
Account Information
kda_requestAccount
kda_getSelectedAccount
Network Information
kda_getNetwork
kda_getChain
Transaction Signing
kda_requestSign
kda_requestQuickSign
Token Transfers
kda_sendKadena
Events
Event Listener Setup
Available Events
res_accountChange
res_checkStatus
res_requestSign
Other Events
Event Handler Best Practices
Error Handling
Common Errors
Error Handling Pattern
TypeScript Types
Type Definitions
Usage with TypeScript
Rate Limiting
Best Practices
1. Always Check Installation
2. Handle Connection State
3. Listen to Account Changes
4. Provide User Feedback
5. Handle Errors Gracefully
Next Steps
Need Help?
Last updated