/// <summary> /// Signs a "Buy Account" operation, suitable for cold wallet usage. /// </summary> /// <param name="buyer_account">Account number of buyer who is purchasing the account</param> /// <param name="account_to_purchase">Account number being purchased</param> /// <param name="price">Settlement price of account being purchased</param> /// <param name="seller_account">Account of seller, receiving payment</param> /// <param name="new_b58_pubkey">Post-settlement public key in base58 encoded format.</param> /// <param name="new_enc_pubkey">Post-settlement public key in hexadecimal encoded format.</param> /// <param name="amount">Amount being transferred from buyer_account to seller_account (the settlement). This is a PASCURRENCY value.</param> /// <param name="last_n_operation">Last value of n_operation obtained with an Account object, for example when called to getaccount</param> /// <param name="fee">Fee of the operation. This is a PASCURRENCY value.</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> /// <param name="signer_b58_pubkey">The current public key of "account_signer" in base58 encoding</param> /// <param name="signer_enc_pubkey">The current public key of "account_signer" in hexadecimal encoding</param> /// <param name="rawoperations">HEXASTRING (optional) - If we want to add a sign operation with other previous operations, here we must put previous rawoperations result</param> /// <remarks>Only one or none of new_b58_pubkey, new_enc_pubkey should be used. Populating both will result in an error.</remarks> /// <remarks>Only one or none of signer_b58_pubkey, signer_b58_pubkey should be used. Populating both will result in an error.</remarks> /// <returns>Returns a Raw Operations Object</returns> public static Task <RawOperation> SignBuyAccountAsync(this IPascalCoinClient client, uint buyer_account, uint account_to_purchase, decimal price, uint seller_account, string new_b58_pubkey, string new_enc_pubkey, decimal amount, uint last_n_operation, decimal fee, byte[] payload = null, PayloadEncryptionMethod?payloadMethod = null, string pwd = null, string signer_b58_pubkey = null, string signer_enc_pubkey = null, string rawoperations = null) { return(Task.Run(() => client.SignBuyAccount(buyer_account, account_to_purchase, price, seller_account, new_b58_pubkey, new_enc_pubkey, amount, last_n_operation, fee, payload, payloadMethod, pwd, signer_b58_pubkey, signer_enc_pubkey, rawoperations))); }