Getting Started
Connect to Cardano using OneKey's CIP-30 compatible provider
Learn how to detect, connect, and interact with Cardano using OneKey's provider.
OneKey implements CIP-30 (Cardano dApp Connector), ensuring compatibility with all Cardano dApps. It also provides Nami wallet compatibility.
Provider Detection
// OneKey provides both onekey and nami interfaces
const onekey = window.cardano?.onekey
const nami = window.cardano?.nami
// Check availability
if (!onekey) {
throw new Error('OneKey Cardano provider not detected')
}
// Get wallet info
console.log('Name:', onekey.name) // 'OneKey'
console.log('API Version:', onekey.apiVersion) // '0.1.0'
console.log('Icon:', onekey.icon)Enable Wallet
Check if Enabled
Get Network ID
Get Balance
Get Addresses
Get UTxOs
Event Handling
Nami Compatibility
OneKey provides Nami wallet compatibility:
Last updated
Was this helpful?