Optimal Endorsement for Network-Wide Distributed Blockchains