TRC20/WpfApp1TRC20/Services/ITronService.cs
2025-07-25 16:05:44 +05:30

23 lines
897 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfApp1TRC20.Data;
namespace WpfApp1TRC20.Services
{
public interface ITronService
{
Task<string> CreateTokenAsync(TokenCreationParams parameters, string ownerPrivateKey);
Task<string> TransferTokenAsync(string contractAddress, string fromPrivateKey, string toAddress, decimal amount);
Task<decimal> GetTokenBalanceAsync(string contractAddress, string address);
Task<decimal> GetTrxBalanceAsync(string address);
Task<TransactionRecord> GetTransactionAsync(string txHash);
Task<bool> IsTokenExpiredAsync(string contractAddress);
WalletAccount CreateWallet(string name);
WalletAccount ImportWallet(string name, string privateKey);
string DecryptPrivateKey(string encryptedPrivateKey);
}
}