This is an example for concsensus management with JS SDK.
Please refer to
this article
.