We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
One block can have multiple transactions. So i want to calculate the size of the block.
Is it possible ? Kindly guide me.
Thank you !!
The text was updated successfully, but these errors were encountered:
I think it's a viable solution
block ,err := ledgerClient.QueryBlock(uint64(0)) if err != nil{ fmt.Println(err) } buf := new (bytes.Buffer) err = protolator.DeepMarshalJSON(buf, block) fmt.Println(len(buf.Bytes()))
more detail you can refer https://github.com/iamlzw/fabric-sdk-go-samples/blob/master/setup.go queryLedger function.
Sorry, something went wrong.
Okay Thank you . I will check this.
No branches or pull requests
One block can have multiple transactions. So i want to calculate the size of the block.
Is it possible ? Kindly guide me.
Thank you !!
The text was updated successfully, but these errors were encountered: