public async Task <SwapInfoDto> GetInfo(string swapId)
 {
     return(await _remmeRest
            .SendRequest <GetAtomicSwapInfoRequest, SwapInfoDto>
                (RemmeMethodsEnum.GetAtomicSwapInfo,
                new GetAtomicSwapInfoRequest { SwapId = swapId }));
 }
Beispiel #2
0
        public async Task <PublicKeyCheckResult> CheckByAddress(string publicKeyAddress)
        {
            var payload = new PublicKeyCheckPayload {
                PublicKeyAddress = publicKeyAddress
            };

            return(await _remmeRest
                   .SendRequest <PublicKeyCheckPayload, PublicKeyCheckResult>(
                       RemmeMethodsEnum.GetPublicKeyInfo,
                       payload));
        }
 public async Task <ulong> GetBalanceByAddress(string publicKey)
 {
     return(await _remmeRest
            .SendRequest <BalanceCheckRequest, ulong>
                (RemmeMethodsEnum.GetBalance,
                new BalanceCheckRequest { PublicKey = publicKey }));
 }