|
1 | 1 | ---
|
2 | 2 | title: Use Blockchain Data Manager to update Azure Cosmos DB - Azure Blockchain Service
|
3 | 3 | description: Use Blockchain Data Manager for Azure Blockchain Service to send blockchain data to Azure Cosmos DB
|
4 |
| -ms.date: 12/04/2019 |
| 4 | +ms.date: 03/08/2020 |
5 | 5 | ms.topic: tutorial
|
6 | 6 | ms.reviewer: chroyal
|
7 | 7 | #Customer intent: As a developer, I want to use Blockchain Data Manager to send blockchain data to Azure Cosmos DB
|
8 | 8 | ---
|
9 | 9 | # Tutorial: Use Blockchain Data Manager to send data to Azure Cosmos DB
|
10 | 10 |
|
11 |
| -In this tutorial, you use Blockchain Data Manager for Azure Blockchain Service to record blockchain transaction data in Azure Cosmos DB. Blockchain Data Manager captures, transforms, and delivers blockchain ledger data to Azure Event Grid Topics. From Azure Event Grid, you use a Azure Logic App connector to create documents in an Azure Cosmos DB database. When finished with tutorial, you can explore blockchain transaction data in Azure Cosmos DB Data Explorer. |
| 11 | +In this tutorial, you use Blockchain Data Manager for Azure Blockchain Service to record blockchain transaction data in Azure Cosmos DB. Blockchain Data Manager captures, transforms, and delivers blockchain ledger data to Azure Event Grid Topics. From Azure Event Grid, you use an Azure Logic App connector to create documents in an Azure Cosmos DB database. When finished with tutorial, you can explore blockchain transaction data in Azure Cosmos DB Data Explorer. |
12 | 12 |
|
13 | 13 | [](./media/data-manager-cosmosdb/raw-msg.png#lightbox)
|
14 | 14 |
|
@@ -242,17 +242,17 @@ The logic app monitors the Event Grid Topic. When a new transaction message is s
|
242 | 242 |
|
243 | 243 | ## Send a transaction
|
244 | 244 |
|
245 |
| -Next, send a transaction to the blockchain ledger to test what you created. Use the **sendrequest.js** script you created in the prerequisite [Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts](send-transaction.md). |
| 245 | +Next, send a transaction to the blockchain ledger to test what you created. Use the **HelloBlockchain** contract's **SendRequest** function you created in the prerequisite [Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts](send-transaction.md). |
246 | 246 |
|
247 |
| -In VS Code's terminal pane, use Truffle to execute the script on your consortium blockchain network. In the terminal pane menu bar, select the **Terminal** tab and **PowerShell** in the dropdown. |
| 247 | +1. Use the Azure Blockchain Development Kit smart contract interaction page to call the **SendRequest** function. Right-click **HelloBlockchain.sol** and choose **Show Smart Contract Interaction Page** from the menu. |
248 | 248 |
|
249 |
| -``` PowerShell |
250 |
| -truffle exec sendrequest.js --network <blockchain network> |
251 |
| -``` |
| 249 | +  |
252 | 250 |
|
253 |
| -Replace \<blockchain network\> with the name of the blockchain network defined in the **truffle-config.js**. |
| 251 | +1. Choose **SendRequest** contract action and enter **Hello, Blockchain!** for the **requestMessage** parameter. Select **Execute** to call the **SendRequest** function via a transaction. |
254 | 252 |
|
255 |
| - |
| 253 | +  |
| 254 | +
|
| 255 | +The SendRequest function sets the **RequestMessage** and **State** fields. The current state for **RequestMessage** is the argument you passed **Hello, Blockchain**. The **State** field value remains **Request**. |
256 | 256 |
|
257 | 257 | ## View transaction data
|
258 | 258 |
|
|
0 commit comments