Beispiel #1
0
        public Operation <BitcoinAddress> VerifyAddress(long bitcoinAddressId)
        => _authorizer.AuthorizeAccess(UserContext.CurrentPPP(), () =>
        {
            var address = _query.GetBitcoinAddressById(bitcoinAddressId)
                          .ThrowIfNull("Invalid bitcoin id specified");

            return(_blockChain.VerifyBitcoinAddress(address)
                   .Then(opr => _pcommand.Update(opr.Result.With(new { IsVerified = true }))));
        });