In Hyperledger Fabric endorsement policy is specified at chaincode instantiation using -P .
Is there any way other than specifying using CLI writing endorsement policy in a file and link that file at chaincode instantiation time instead of using cli?
Thanks in advance.