Interface NearAccountManager
Properties
Readonly
initialBalance
initialBalance: string
Methods
addAccountCreated
- addAccountCreated(account, sender): void
-
Parameters
-
account: string
-
sender: string
Returns void
availableBalance
- availableBalance(account): Promise<NEAR>
-
Returns Promise<NEAR>
cleanup
- cleanup(): Promise<void>
-
Returns Promise<void>
deleteAccount
- deleteAccount(accountId, beneficiaryId, keyPair?): Promise<TransactionResult>
-
Parameters
-
accountId: string
-
beneficiaryId: string
-
Optional
keyPair: KeyPair
deleteKey
- deleteKey(accountId): Promise<void>
-
Returns Promise<void>
getKey
- getKey(accountId): Promise<null | KeyPair>
-
Returns Promise<null | KeyPair>
setKey
- setKey(accountId, keyPair?): Promise<KeyPair>
-
Parameters
-
accountId: string
-
Optional
keyPair: KeyPair
Returns Promise<KeyPair>
Creates a KeyPair if one is not provided