hyperledger / fabric-gateway

Go, Node and Java client API for Hyperledger Fabric v2.4+
https://hyperledger.github.io/fabric-gateway/
Apache License 2.0
150 stars 88 forks source link

how to get a BlockInfo by fabric-gateway? #582

Closed diandiankou closed 1 year ago

diandiankou commented 1 year ago

i can get a BlockInfo through the fabric-gatway-Java repo, for example:

Channel channel = network.getChannel(); BlockInfo blockInfo = channel.queryBlockByNumber(Long.parseLong(txId));

But how can I get a BlockInfo through the fabric-gatway repo? I haven't seen any similar interfaces.