AIN Wallet API
This document describes how to access AIN Wallet in a JavaScript based web app. Before following this article, make sure you have installed the AIN Wallet.
What does AIN Wallet API do?
APIs
window.ainetwork.getAddress()
window.ainetwork.getAddress(): Promise<string>window.ainetwork.getAccount()
interface Account {
name: string
address: string
}
window.ainetwork.getAccount(): Promise<Account>window.ainetwork.getNetwork()
window.ainetwork.getBalance()
window.ainetwork.signMessage()
window.ainetwork.sendTransaction()
Last updated