accountForCoin

open fun accountForCoin(coin: CoinType, wallet: HDWallet): Account

Returns the account for a specific coin, creating it if necessary.

Return

Null pointer if the associated account is not found/not created, pointer to the account otherwise.

Parameters

key

Non-null pointer to a stored key

coin

The coin type

wallet

The associated HD wallet, can be null.