|
Parsing blockdata in fabric sdk-JAva
#fabric-sdk
#fabric-sdk-java
You asked the same question on how to extract a chaincode event from a block event last week. Here is the reply I gave you then: https://lists.hyperledger.org/g/fabric/message/11144
You asked the same question on how to extract a chaincode event from a block event last week. Here is the reply I gave you then: https://lists.hyperledger.org/g/fabric/message/11144
|
By
Mark Lewis
· #11191
·
|
|
Parsing blockdata in fabric sdk-JAva
#fabric-sdk
#fabric-sdk-java
I am getting blockdata in this way: BlockData tv=blockEvent.getBlock().getData(); I would like to parse this data.How to do that? I have to parse event contract event from this. Is it possible? I have
I am getting blockdata in this way: BlockData tv=blockEvent.getBlock().getData(); I would like to parse this data.How to do that? I have to parse event contract event from this. Is it possible? I have
|
By
jeff.jo95z@...
· #11189
·
|
|
Getting block height -Fabric-sdk-jAVA
#fabric-sdk-java
You should be able to use evaluateTransaction() to invoke the GetChainInfo transaction function on the qscc system chaincode. The response will be a serialized BlockchainInfo protocol buffer object, w
You should be able to use evaluateTransaction() to invoke the GetChainInfo transaction function on the qscc system chaincode. The response will be a serialized BlockchainInfo protocol buffer object, w
|
By
Mark Lewis
· #11186
·
|
|
Getting block height -Fabric-sdk-jAVA
#fabric-sdk-java
How can we get the block height using fabric sdk java?
How can we get the block height using fabric sdk java?
|
By
jeff.jo95z@...
· #11185
·
|
|
Fabric-sdk-jAVA issue
#fabric-sdk-java
hello, when I was trying a query transaction via fabric sdk, I was getting this error: mychannel already exist This is coming because it is unable to read the details of the existing channel in the ne
hello, when I was trying a query transaction via fabric sdk, I was getting this error: mychannel already exist This is coming because it is unable to read the details of the existing channel in the ne
|
By
jeff.jo95z@...
· #11181
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
You haven't provided anywhere near enough detail of what you are actually doing (steps the code is taking that produce the problem) or what error is produced (stack trace) to be able to help.
You haven't provided anywhere near enough detail of what you are actually doing (steps the code is taking that produce the problem) or what error is produced (stack trace) to be able to help.
|
By
Mark Lewis
· #11177
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
When I am trying to make a query using java sdk, I am getting an error like: mychannel already exists from gatewayImplementation class why this error is coming? why a query part is giving this error?
When I am trying to make a query using java sdk, I am getting an error like: mychannel already exists from gatewayImplementation class why this error is coming? why a query part is giving this error?
|
By
jeff.jo95z@...
· #11175
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
How to subscribe and unsubscribe to the block events in fabric java sdk ?
How to subscribe and unsubscribe to the block events in fabric java sdk ?
|
By
jeff.jo95z@...
· #11148
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
The ContractEvent (fabric-gateway-java) and ChaincodeEvent (Fabric Gateway client API) that get delivered to you by contract/chaincode event listening both have getPayload() methods. Similar to the va
The ContractEvent (fabric-gateway-java) and ChaincodeEvent (Fabric Gateway client API) that get delivered to you by contract/chaincode event listening both have getPayload() methods. Similar to the va
|
By
Mark Lewis
· #11144
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
is it possible to extract this from the blockevent itself?
is it possible to extract this from the blockevent itself?
|
By
jeff.jo95z@...
· #11143
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
data appears like this: \tassetTest\\022\\030\ \\026\ \\020\\000\\364\\217\\277\\277initialized\\022\\002\\b\\026\\022\\301\\001\ \\tassetTest\\022@612b449bdcc554261c663ba2bc67048ca74e3f6944a9f9b5ce6c
data appears like this: \tassetTest\\022\\030\ \\026\ \\020\\000\\364\\217\\277\\277initialized\\022\\002\\b\\026\\022\\301\\001\ \\tassetTest\\022@612b449bdcc554261c663ba2bc67048ca74e3f6944a9f9b5ce6c
|
By
jeff.jo95z@...
· #11142
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
You can add a chaincode / contract listener instead of a block listener and receive only the chaincode events. Use addContractListener() method on your Contract object: https://hyperledger.github.io/f
You can add a chaincode / contract listener instead of a block listener and receive only the chaincode events. Use addContractListener() method on your Contract object: https://hyperledger.github.io/f
|
By
Mark Lewis
· #11141
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
In the chaincode,an event is emitted. In the blockdata from the blockevent listener,the event data is visible. Is it possible to extract just the event data from the blockdata?
In the chaincode,an event is emitted. In the blockdata from the blockevent listener,the event data is visible. Is it possible to extract just the event data from the blockdata?
|
By
jeff.jo95z@...
· #11140
·
|
|
Fabric-sdk-jAVA-Blockevents
#fabric-sdk-java
#fabric
Hello, You can use the HLF Java SDK channel to register a chaincode event listener. So you can do something like: network.getChannel().registerChaincodeEventListener( <your params here>) ; You can fin
Hello, You can use the HLF Java SDK channel to register a chaincode event listener. So you can do something like: network.getChannel().registerChaincodeEventListener( <your params here>) ; You can fin
|
By
Tsvetan Georgiev
· #11098
·
|
|
Fabric-sdk-jAVA-Blockevents
#fabric-sdk-java
#fabric
hi, Is it possible to return the recorded blockevents in java sdk? I have attached a my java file. What modification do I have to do to return the blockevents in a readable format
hi, Is it possible to return the recorded blockevents in java sdk? I have attached a my java file. What modification do I have to do to return the blockevents in a readable format
|
By
jeff.jo95z@...
· #11095
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
It looks like the client tried to make a service discovery call to a peer, either to obtain information about other network nodes or to obtain an endorsement plan for a given transaction invocation, b
It looks like the client tried to make a service discovery call to a peer, either to obtain information about other network nodes or to obtain an endorsement plan for a given transaction invocation, b
|
By
Mark Lewis
· #11050
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
hi, when i was executing using java sdk,I got the following error: Results : Tests in error: testFabCar(org.example.ClientTest): org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: java.ut
hi, when i was executing using java sdk,I got the following error: Results : Tests in error: testFabCar(org.example.ClientTest): org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: java.ut
|
By
jeff.jo95z@...
· #11049
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
The BlockEvent itself has lots of helpful accessor methods to help you navigate to useful data within the block, so you should probably prefer those if they do what you need. getBlock() returns the Bl
The BlockEvent itself has lots of helpful accessor methods to help you navigate to useful data within the block, so you should probably prefer those if they do what you need. getBlock() returns the Bl
|
By
Mark Lewis
· #11046
·
|
|
Fabric-sdk-jAVA
#fabric-sdk-java
Hi All, How to decode the data from blocklistener? is it possible to decode the output from blockEvent.getBlock() ? Attaching the file for the reference
Hi All, How to decode the data from blocklistener? is it possible to decode the output from blockEvent.getBlock() ? Attaching the file for the reference
|
By
jeff.jo95z@...
· #11045
·
|
|
How parse qccc response data in java-sdk
#fabric-sdk-java
It returns a serialised Block protocol buffer message (see implementation). You should be able to deserialise it using the compiled protobuf implementations packaged in fabric-sdk-java. Something like
It returns a serialised Block protocol buffer message (see implementation). You should be able to deserialise it using the compiled protobuf implementations packaged in fabric-sdk-java. Something like
|
By
Mark Lewis
· #11036
·
|