private CustomTransactionFullInfo GetCustomTransactionFullInfo(SignedTransaction transaction,
                                                                       TransactionInfo info)
        {
            CustomTransactionFullInfo ret = new CustomTransactionFullInfo();

            if (transaction == null)
            {
                return(ret);
            }

            var customRawTransaction = new CustomRawTransaction(
                transaction.SignedTxn.ToByteArray());

            ret.RawTransaction = customRawTransaction;
            // ret.SenderPublicKey = transaction..ToByteArray().ByteArryToString();
            // ret.SenderSignature = transaction.SenderSignature.ToByteArray().ByteArryToString();
            if (info != null)
            {
                ret.GasUsed = info.GasUsed;
            }
            else
            {
                ret.GasUsed = 0;
            }



            return(ret);
        }
        public async Task <CustomRawTransaction> GetTransactionsBySequenceNumberAsync(
            string address, ulong sequenceNumber)
        {
            var transaction = await _service.GetTransactionsBySequenceNumberAsync(
                address, sequenceNumber);

            if (transaction == null)
            {
                return(null);
            }

            var trx = transaction.SignedTransaction;
            var customRawTransaction = new CustomRawTransaction(
                trx.SignedTxn.ToByteArray());

            return(customRawTransaction);
        }