Cyclone Wallet – Front-End Integration Guide
1. Detecting the Extension
function waitForCycloneWallet(cb) {
if (window.cycloneWallet) {
cb();
} else {
setTimeout(() => waitForCycloneWallet(cb), 100);
}
}
waitForCycloneWallet(() => {
console.log('Cyclone Wallet API detected');
// Your app initialization here
});2. High-level API
Method
Purpose
Returns (Promise)
3. Payload Templates
3.1 sign
sign3.2 send
send3.3 signAndSend
signAndSend4. Quick Integration Example
index.html
index.htmlscript.js
script.js5. UX Guidelines
6. Security Best Practices
7. Pre-Release Checklist
8. Handy Utility Functions
Need Help?
Last updated