Beispiel #1
0
        /// <inheritdoc />
        public async Task <BroadcastedSingleTransaction> TryGetBroadcastedSingleTransactionAsync(Guid operationId, BlockchainAsset asset)
        {
            ValidateOperationIdIsNotEmpty(operationId);
            ValidateAssetIsNotNull(asset);

            var apiResponse = await _runner.RunWithRetriesAsync(() => _api.GetBroadcastedSingleTransactionAsync(operationId));

            return(apiResponse == null
                ? null
                : new BroadcastedSingleTransaction(apiResponse, asset.Accuracy, operationId));
        }