//public async Task<string> SendTransaction(
        //  byte[] privateKey, byte[] rawTransaction)
        //{

        //    var result = await _service.SendTransactionAsync(privateKey, rawTransaction);
        //    return result.ToString();

        //}

        //public async Task<string> SendTransactionPtoP(
        //  byte[] senderPrivateKey, string sender, string reciver, ulong amount)
        //{
        //    var senderAccount = await GetAccountInfoAsync(sender);

        //    RawTransaction rawTr = new RawTransaction()
        //    {
        //        ExpirationTime = (ulong)DateTimeOffset.UtcNow.AddSeconds(60).ToUnixTimeSeconds(),
        //        GasUnitPrice = 0,
        //        MaxGasAmount = 29925,
        //        SequenceNumber = senderAccount.SequenceNumber
        //    };

        //    rawTr.Program = new Program();
        //    rawTr.Program.Code = ByteString.CopyFrom(Utility.PtPTrxBytecode);

        //    rawTr.Program.Arguments.Add(new TransactionArgument()
        //    {
        //        Type = TransactionArgument.Types.ArgType.Address,
        //        Data = ByteString.CopyFrom(reciver.HexStringToByteArray())
        //    });

        //    rawTr.Program.Arguments.Add(new TransactionArgument()
        //    {
        //        Type = TransactionArgument.Types.ArgType.U64,
        //        Data = ByteString.CopyFrom(BitConverter.GetBytes(amount))
        //    });

        //    rawTr.SenderAccount = ByteString.CopyFrom(sender.HexStringToByteArray());

        //    var result = await _service.SendTransactionAsync(senderPrivateKey, rawTr);
        //    return result.ToString();
        //}

        public void Dispose()
        {
            _service.Shutdown();
        }