public async Task ProcessMessage(BroadcastCommitmentMessage msg, QueueTriggeringContext context) { var asset = await _assetCache.GetItemAsync(msg.Asset); if (asset == null) { msg.Error = "Asset is not found"; context.MoveMessageToPoison(msg.ToJson()); return; } await _offchainService.BroadcastCommitment(msg.Multisig, asset, msg.UseFees); }
public async Task <TransactionHashResponse> BroadcastCommitment([FromBody] BroadcastCommitmentModel model) { var asset = await GetAsset(model.Asset); return(new TransactionHashResponse(await _offchain.BroadcastCommitment(model.ClientPubKey, asset, model.Transaction, true))); }