OORT Wallet Developers
The OORT wallet development API and example codes.
The OORT wallet (Chrome Extension) API
Check if OORT wallet is installed
typeof window[“aleereum”] !== “undefined”
const provider = window[“aleereum”]Check if OORT wallet is connected
const isConnected: boolean = provider.isConnectedCheck if OORT wallet is locked
const islocked: boolean = provider.islockedGet current network Id
const networkId: string = provider.networkIdGet current account
Get an account balance
Connect or unlock the wallet
Listen to the change of account
Listen to the change of networkId
Listen to the change of isConnected status of the wallet
Listen to the change of lock/unlock status of the wallet
Examples
Vue.js example code
Send a transaction to smart contract
Last updated
