accountForCoinDerivation

open fun accountForCoinDerivation(coin: CoinType, derivation: Derivation, wallet: HDWallet): Account

Returns the account for a specific coin + derivation, 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

derivation

The derivation for the given coin

wallet

the associated HD wallet, can be null.