blockchain-explorer | Hyperledger Explorer is a simple powerful easy-to-use | Blockchain library
kandi X-RAY | blockchain-explorer Summary
kandi X-RAY | blockchain-explorer Summary
Hyperledger Explorer is a simple, powerful, easy-to-use, well maintained, open source utility to browse activity on the underlying blockchain network. Users have the ability to configure and build Hyperledger Explorer on MacOS and Ubuntu. Update! Hyperledger Explorer now can be used with Hyperledger Iroha. For Iroha support, please switch to iroha-integration branch and read this README for instructions on how to use it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register a swagger worker .
- Checks if the service is reloaded .
- Private methods .
- A special effect to remove the theme s styling effects .
- Removes transaction from the current transaction ID .
- Unregister the service worker
- Convert a string toInt .
- map over props to object state
- Convert to RGBA color
- Converts a string of SHA - 256
blockchain-explorer Key Features
blockchain-explorer Examples and Code Snippets
Community Discussions
Trending Discussions on blockchain-explorer
QUESTION
I am currently running hyperledger fabric v2.2. I have developed the chaincode using the contractapi and developing the application using fabric-sdk-go/pkg/gateway
How can i get the transaction status and the transaction payload? I am aware of the GetHistoryByKey() which is available in the contractapi but that doesn't works out for my application.
I know there is hyperledger-explorer which can be used to search transactions by TxID but my use-case is my application will be querying by TxID and then it will verify the status of that particular transaction (TxID).
Also, i have tried to achieve this using the fabsdk but i am getting an error when i try to create instantiate the fabsdk using the fabsdk.New()
. There seems to be some compatibility issue with the connection-profile.json which i am using the fabric-sample project.
The error which i am getting is:
failed to create identity manager provider: failed to initialize identity manager for organization: MyOrgName: Either a cryptopath or an embedded list of users is required
The same connection-profile has been used in getting the network up and running, and everything seems to be working all good. I am able to submit and evaluate transactions.
SOLUTION
The system chaincodes are embedded in the peer itself. so we need to set the target otherwise it would just give the discovery error since the contract QSCC is not explicitly deployed on the channel.
Make sure to check the core.yaml file channel.system - the system chaincode should be enabled channel.system.qscc: enable
...ANSWER
Answered 2021-Jun-08 at 11:42Your client application can use the client SDK appropriate to your pogramming language to evaluate the GetTransactionByID
transaction function on the qscc
system chaincode, which is available on all peers. This transaction function takes a transaction ID as its only argument and returns a peer.ProcessedTransaction
protobuf, which contains the transaction envelope and a validation code.
QUESTION
I am trying to build a decentralized app that able to do show the block header like data hash, the previous hash of the block when a user submits a new transaction. However, It seems like the new version of Fabric Node SDK 2.2 removes the function queryblock.
I refer on the documentation at https://hyperledger.github.io/fabric-sdk-node/release-2.2/module-fabric-network.html and currently still looking for some workaround to show the block info of the user's transaction.
The ideal output that I wish to achieved is almost similar to what Hyperledger Explorer provide.The reference can be check at:
which show the information such as Number of Blocks, Data Hash, Previous Hash and other Block Information regarding the hash.
Some information that I able to gatherThere are some information like BlockEvent that have the name
blockData
in the interfaceBlockEvent
. However, I can't seem to find it whennpm install i fabric-network
.Since the user can query and check their hash with the ledger, a key or hash need to be returned to the user upon transaction success. Is there any API function for this? So far, I able to found there are
getTransactionId()
in the classTransaction
. But is this one that I need to use?
All of the reference since to deal with the old version of node SDK which is version 1.4.
- Hyperledger Fabric : How to Query blocks using fabric NodeSDK
- HyperLedger Fabric Get Block Info - using node.js
- how to display current hash,previous hash using node js on view pages for hyperledger fabric
- How do you calculate the Block Hash for the Current Block in Hyperledger Fabric with javascript?
- How to get history of asset with block hash in hyperledger fabric using node sdk
ANSWER
Answered 2021-Mar-23 at 10:30You can query block number by call function GetBlockByNumber
of qscc
contract. Example:
QUESTION
This is what my network setup.
- peer1.org1.example.com
- peer1.org2.example.com
- peer0.org1.example.com
- peer0.org2.example.com
- ca_peerOrg2
- ca_peerOrg1
- orderer.example.com
After instantiation of my chaincode, I am getting transaction count as 0 in chaincode's tab in hyperledger fabric explorer. But It is 4 in dashboard and channel's tab. What is the reason? Can someone please explain?
...ANSWER
Answered 2020-Jun-17 at 06:12The instantiation of the chaincode is a transaction itself. So for each one of the peers that you instantiate a chaincode you will have a transaction.
QUESTION
My server is already configured for CORS and it is running in other react-redux application.
Now I am trying to call a sample API from Hyperledger Explorer. I've written a function for calling to my API server. The code for calling my API server is given here:
...ANSWER
Answered 2020-Jan-15 at 11:51It is configured that we can't fetch any content from another server. So I created a router function inside app/rest/ folder. Then I call that router function from client side. Just replaced agent.post('http://103.23.42.198:9099/api/certificate/list')
with post('/api/certificate/list')
. Here post is imported from '../../../services/request'
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install blockchain-explorer
Modify app/explorerconfig.json to update PostgreSQL database settings. "postgreSQL": { "host": "127.0.0.1", "port": "5432", "database": "fabricexplorer", "username": "hppoc", "passwd": "password" } Another alternative to configure database settings is to use environment variables, example of settings: export DATABASE_HOST=127.0.0.1 export DATABASE_PORT=5432 export DATABASE_DATABASE=fabricexplorer export DATABASE_USERNAME=hppoc export DATABASE_PASSWD=pass12345 Important repeat after every git pull (in some case you may need to apply permission to db/ directory, from blockchain-explorer/app/persistence/fabric/postgreSQL run: chmod -R 775 db/
Important: repeat the below steps after every git pull.
./main.sh install To install, run tests, and build project
./main.sh clean To clean the /node_modules, client/node_modules client/build, client/coverage, app/test/node_modules directories
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page