Getting Started
Connect to Algorand using OneKey's provider
Learn how to detect, connect, and interact with Algorand using OneKey's provider.
OneKey's Algorand provider supports both legacy and ARC-0001 compliant interfaces.
Provider Detection
// Detect OneKey Algorand provider
const provider = window.$onekey?.algo
if (!provider) {
throw new Error('OneKey Algorand provider not detected')
}
// Check compatibility
console.log('isOneKey:', provider.isOneKey) // trueConnect (Legacy API)
const { address } = await provider.connect()
console.log('Connected:', address)
// Check connection status
console.log('isConnected:', provider.isConnected)
console.log('Address:', provider.address)Enable (ARC-0001)
Disconnect
Event Handling
Listen for Account Changes
Listen for Connection
Using with Algod Client
Get Client from Provider
Manual Client Setup
Last updated
Was this helpful?