/// <summary> /// Executes a change key operation, changing "account" public key for a new one, in multiple accounts Works like changekey /// </summary> /// <param name="accounts">List of accounts separated by a comma</param> /// <param name="new_enc_pubkey">HEXASTRING - New public key in encoded format</param> /// <param name="new_b58_pubkey">New public key in Base 58 format (the same that Application Wallet exports)</param> /// <param name="fee">PASCURRENCY - Fee of the operation</param> /// <param name="payload">Payload "item" that will be included in this operation</param> /// <param name="payloadMethod">Encode type of the item payload</param> /// <param name="pwd">Used to encrypt payload with aes as a payload_method. If none equals to empty password</param> /// <returns>If operation is successfull will return a JSON Array with Operation object items for each key If operation cannot be made, a JSON-RPC error message is returned</returns> public static Task <Operation[]> ChangeKeysAsync(this IPascalCoinClient client, string accounts, string new_enc_pubkey, string new_b58_pubkey, decimal fee, byte[] payload = null, PayloadEncryptionMethod?payloadMethod = null, string pwd = null) { return(Task.Run(() => client.ChangeKeys(accounts, new_enc_pubkey, new_b58_pubkey, fee, payload, payloadMethod, pwd))); }