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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in 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: