23 lines
897 B
C#
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);
|
|
}
|
|
}
|