private static async Task <object> CreateAddressAsync(ISignServiceApi client) { Console.WriteLine("Creating address..."); var response = await client.CreateAddressAsync(new CreateAddressRequest(MyPublicKey)); Console.WriteLine($"Decrypted private key: {response.PrivateKey.DecryptToString(MyPrivateKey)}"); return(response); }
private static async Task <object> CreateAddressTagAsync(ISignServiceApi client) { Console.WriteLine("Creating address tag..."); return(await client.CreateAddressTagAsync ( "Test:c021d892538b4a7a8520ae46f368c00f", new CreateAddressTagRequest ( new Base64String("2HQaV1"), AddressTagType.Number ) )); }
private static async Task <object> SignTransactionAsync(ISignServiceApi client) { Console.WriteLine("Signing the transaction..."); return(await client.SignTransactionAsync ( new SignTransactionRequest ( new[] { "ab8b89f8".Encrypt(MyPublicKey), }, new Base64String("8DwvGw29pzwXkL4AzkpPr94qEYf77hznJvfYKN4NMxxaDAwUFXunY2eQqaL3pji4e2PaA9Cyxf7NKjTQJbzKs2W4vvaqit48PoLpk6vGyexkACnd77CCpjf7xqdBnkYG151JexnrmYHhF8FNk5bswDnxKS4vzw4XKEf99rYqH9orrNzicwZPrBxNM6jYodXjyPGocfH4reVYJS84iBvRXRMMZbhciVG5qRTdwDU2kiUa3XfDzvvqYCiQxaLfdpuiBb969YCME3p7BpS4BBaAt6c4amKykb4GDQt3W8tMbb725gF4FCvysTn49t2iyAdfP7iYiqoVwubF9SQZCJGwsoVKnvVXRMQyA7gy1iYbKfQfFeMVQyXYB3SJsZZi3hsoiGKuaEtWg7yzVXihHo3iF81kmkD1rYcENjWuXoiFMv6yZotTsQ5FQkwAQGZjdQi4QDa") ) )); }
private static async Task <object> GetIsAliveAsync(ISignServiceApi client) { Console.WriteLine("Getting isalive of the sign service..."); return(await client.GetIsAliveAsync()); }