Account Data
getAccount
await window.omega.getAccount(): Promise<{
index: number
name: string
address: string
derivationPath: string
publicKey?: string
display: boolean
}>
getAccounts
await window.omega.getAccounts(): Promise<{
index: number
name: string
address: string
derivationPath: string
publicKey?: string
display: boolean
}[]>
getProvider
await window.omega.getProvider(): Promise<{
provider: string
}>
getNetwork
await window.omega.getNetwork(): Promise<{
chainID: string
name: string
nodeURL: string
faucetURL: string
explorerURL: string
nativeToken: string
type: 'testnet' | 'mainnet' | 'devnet'
}>
getNetworks
await window.omega.getNetworks(): Promise<{
chainID: string
name: string
nodeURL: string
faucetURL: string
explorerURL: string
nativeToken: string
type: 'testnet' | 'mainnet' | 'devnet'
}[]>
getBalance
await window.omega.getBalance(): Promise<{
amount: string
}>
getBalances
await window.omega.getBalances(): Promise<Array<{
amount: string
assetId: string
}>>
getAsset
await window.omega.getAsset(): Promise<{
data: AssetTypes.Asset[],
version: number
}>