Based on the (continued) developing of the Commercial Paper stack
API Notes
| Verifying that +calanais is my blockchain ID. https://onename.com/calanais |
| toHex(str) { | |
| let hex = ''; | |
| for(let i=0;i<str.length;i++) { | |
| let s = str.charCodeAt(i).toString(16); | |
| hex += (s.length===1 ? '0' : '')+ str.charCodeAt(i).toString(16)+ ' '; | |
| } | |
| return hex; | |
| } |
| let selected = {}; | |
| let ready = (callback) => { | |
| // in case the document is already rendered | |
| if (document.readyState != 'loading') callback(); | |
| // modern browsers | |
| else if (document.addEventListener) document.addEventListener('DOMContentLoaded', callback); | |
| // IE <= 8 | |
| else document.attachEvent('onreadystatechange', function () { |
| /* | |
| SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| /** | |
| * Client application to get the metadata from a deployed Fabric Contract. | |
| * | |
| * Good example of the essentials of connecting a client to Fabric, and how to | |
| * issue a simple transaction. As this is an 'evaluate' transaction (i.e. nothing is | |
| * committed to the ledger) it is also a useful 'ping' transactions. All chaincode's start |
| #!/bin/bash | |
| # update packge information and | |
| # install the build essentials | |
| sudo apt update | |
| sudo apt install build-essentials git | |
| sudo apt upgrade | |
| # zsh | |
| sudo apt-get install zsh | |
| sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
sudo yum install gcc-c++ make
# get the nvm installer for node.js
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
# (restart the terminal app to get this added to your shell path)
Node.js - example script in package.json
"start:dev": "CORE_CHAINCODE_LOGGING_SHIM=debug fabric-chaincode-node start --peer.address=localhost:7052 --chaincode-id-name hellonet:1"
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |