I want to make many txs on fabric chaincode, how to call it async or in batch?
While I only found
channelClient.Execute channelClient.Query method, it send txs one by one and wait until tx is committed in block.
How to send transactions async or batch send in Hyperledger Fabric using fabric-sdk-go
878 Views Asked by Gang Zhao At
1
There are 1 best solutions below
Related Questions in HYPERLEDGER-FABRIC
- Error during Hyperledger Composer network install: npm ERR! command failed with node-gyp rebuild
- Backup and restoring Hyperledger fabric network one instance to other instanc
- hyperledger fabric can we intergrate existing database into a blockchain network and how?
- Accessing Fabric CA Server with REST API (Authentication Error)
- Learning Hyperledger Fabric & setting up a simple network. Stuck on an error while trying to regenerate the channel configuration transaction
- HyperLedger fabric error during the channel creation
- Im using hyperledger fabric, and im receiving a non-zero return code for when i try to run 'run the orderer raft leader election script'
- Setting up gRPC Proxies for HLF Operator Operations Console
- Error: Failed to get client TLS config: Error parsing certificate: x509: malformed serial number
- Facing slowness in Channel sync Operation in Hyperledger Fabric v2.2
- failed client connection to minifabric blockchain
- Hyperledger & OpenTelemetry: "GrpcExporter : Failed to export metrics" Failed to connect to localhost
- committed with status (ENDORSEMENT_POLICY_FAILURE) at peer1.org1.com:7051
- Hyperledger Fabric CA Certificate Error with Fabric Samples deployment
- How to manage dynamic data format in hyperledger
Related Questions in HYPERLEDGER-FABRIC-SDK-JS
- Understanding Hyperledger Fabric
- How to do partial Transaction search using SDK-Node methods of Hyperledger Fabric
- Hyperledger Fabric client and metrics for nodejs application
- how to use nodesdk install chaincode on fabric v2.2
- Hyperledger Fabric Rollback() function in v2.4
- [ServiceEndpoint]: ServiceEndpoint grpcs://localhost:7050 reset connection failed :: TypeError:Channel credentials must be a ChannelCredentials object
- Hyperledger Fabric2.4.7 testnetwork- how can I read an other Orgs implicit private data collection
- I am trying to run hyperledger fabric sample test network on windows 11
- How to create hyperledger fabric singleton gateway object using node js sdk?
- Error: the account XXXXXXXXXX does not exist
- How to connect to Amazon managed blockchain network using hyperledger-fabric-nodesdk 2.2
- Hyperledger Fabric: Get Block Data for all blocks
- is it possible to prioritize orderer when submitting transactions through fabric-sdk-node?
- Failed to evaluate transaction: Error: You've asked to invoke a function that does not exist: getLastPatientId
- How to choose with a specific peer to share the transaction with?
Related Questions in HYPERLEDGER-FABRIC-SDK-GO
- Fabric SDK Go Conflict with Fabric 1.4.12 Protos - "Message Already Registered" Error
- How can I set an insecure connections between endorser peers?
- abric go sdk1.0.0 execute [cli.Execute()] get an error "error registering for TxStatus event: no peers to connect to"
- Can't invoke chaincode using fabric-sdk-go lib in hyperledger fabric
- How to fix FireFly Fabconnect container start issue: "User credentials store creation failed. User credentials store path is empty"
- fabsdk/util configure MSP failed: sanitizeCert failed the supplied identity is not valid: x509: certificate signed by unknown authority
- Hyperledger Fabric2.4.7 testnetwork- how can I read an other Orgs implicit private data collection
- Adding data to a PDC from an orderer peer - Hyperledger Fabric
- Failed to get network: Failed to create new channel client: event service creation failed: could not get chConfig cache reference
- Hyperledger Go SDK Client error connection is in TRANSIENT_FAILURE remote error: tls: bad certificate
- How to package the couchdb indexes in external chaincode build?
- I encountered some problems when I tried to connect the chaincode with the go program.* '***.Registrar' expected a map, got 'slice'
- TRANSIENT_FAILURE occurs when a transaction is sent using Gateway that is configured using `WithSDK` in fabric-go-sdk
- How to initialize FabricSDK correctly?
- fabric invoke chaincode error: Failed to get endorsing peers: no endorsement combination can be satisfied
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In a single client, in code, the transactions appear to be committed one by one, but not when you look at the network topology broadly.
I will explain according to the transaction flow of the fabric.
If your question is to request multiple transactions from a single client at once, you can easily implement it as below through asynchronous request in javascript. The code has partially modified fabric-samples/fabcar/invoke.js.
using
Promise.all()