Skip to content
CCPEDIAby Unity Nodes
App Development

Canton - Limit number of transactions inside a command?

3 posts237 views2 likesLast activity May 2022

  1. jaypeedaOP

    Hi team,

    After this topic Clarification - Canton resource limit maxRate, I’ve understood that we can set up the maxRate which represents the command / sec that the ledger api accepts.

    But is it possible to set up the number of transactions inside a command ? As it would be possible to submit 100k transaction in one single command ? Is there a protection against that ?

    Best regards,
    Jean-Paul

  2. danilofaria 1

    Hey @jaypeeda,

    You can’t set the number of transactions, but it is possible to set the max allowed size in bytes of inbound messages to the ledger api server with LedgerApiServerConfig#maxInboundMessageSize.

  3. jaypeeda 1

    Thanks Danilo!