/// <summary> /// Gets the account using public key. /// </summary> /// <returns>The account.</returns> /// <param name="pubkey">Pubkey.</param> public IWalletAccount GetAccount(ECPoint pubkey) { if (pubkey == null) { throw new ArgumentNullException(); } var scriptHash = _walletHelper.ScriptHashFromPublicKey(pubkey); return(GetAccount(scriptHash)); }