addAccount

open fun addAccount(address: String, coin: CoinType, derivationPath: String, publicKey: String, extendedPublicKey: String)

Adds a new account, using given derivation path. \deprecated Use TWStoredKeyAddAccountDerivation (with TWDerivationDefault) instead.

Parameters

key

Non-null pointer to a stored key

address

Non-null pointer to the address of the coin for this account

coin

coin type

derivationPath

HD bip44 derivation path of the given coin

publicKey

Non-null public key of the given coin/address

extendedPublicKey

Non-null extended public key of the given coin/address