UNPKG

@arcblock/blocklet-registry

Version:

**Blocklets** are reusable building blocks to help developers and community users to build things on [ArcBlock](https://www.arcblock.io) platform. A blocklet serves one and only one purpose, reusability is the core design philosophy of blocklets. Reusabil

38 lines (22 loc) 1.17 kB
# OCAP QLDB Example This is an example project that shows how to start a OCAP Adapter that's baked by Amazon QLDB. Checkout [./index.js](./index.js) for example code. To get the example up and running, please following following steps. ## 1. Get Your AWS Access Key/Secret https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started.nodejs.html Your should get your AWS access key and secret when this step is done. **Make sure your account has access to qldb ledgers.** ## 2. Create your Ledge on QLDB Console > This step is not required, since the demo will help to create when run in blocklet mode. You should get the ledger name and ledger region when this step is done. ## 3. Setup Config file Create a `.env` file at this example project root: ```ini AWS_ACCESS_KEY_ID='CHANGE_THIS_TO_YOUR_ACCESS_KEY' AWS_SECRET_ACCESS_KEY='CHANGE_THIS_TO_YOUR_ACCESS_SECRET' AWS_LEDGER='ocap-qldb-demo' AWS_REGION='ap-northeast-1' ``` ## 4. How to play with the demo? - Provide the endpoint to `@arcblock/block-explorer` blocklet to explore the txs/accounts - Provide the endpoint to `blockchain-boarding-gate` blocklet to explore the txs/accounts