<p>You can get this info from the live chain <code>protocol-parameters</code> and filter on the string <strong>block</strong>, as per below:</p>
<pre><code>$ cardano-cli query protocol-parameters --mainnet |grep -i block
    &quot;maxBlockExecutionUnits&quot;: {
    &quot;maxBlockHeaderSize&quot;: 1100,
    &quot;maxBlockBodySize&quot;: 90112
</code></pre>
<p>90112 / 1024 = 88KB</p>

CC BY-SA 4.0
2022-06-02T08:46:36.433Z
Ok, this is exactly what I was doing. So basically what this is telling me is that the maxBlockBodySize in Testnet is 96KB (98304 / 1024) instead of 88KB bytes. Is this correct?
Falcon Stakepool
CC BY-SA 4.0
2022-06-02T09:05:49.423Z
I haven't tried this on testnet, but if you're getting 98304 then yeah it looks like they are running with a larger block size when compared to mainnet.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-06-02T09:25:01.950Z
Yes, that's it. Cheers!
Falcon Stakepool
CC BY-SA 4.0
2022-06-02T05:32:42.383Z
2022-06-02T05:32:42.383Z
MC_Brisbane - JUST Pool
<p>You are looking in the wrong place. You are looking at the genesis config for one of the eras (Alonzo maybe?).</p>
<p>The <code>max_block_size</code> is set in the on-chain epoch paramaters which <code>cardano-db-sync</code> stores in the <code>epoch_param</code> table. My <code>db-sync</code> is only synced to epoch <code>336</code> so I do not get the latest epochs:</p>
<pre><code>select epoch_no, max_block_size from epoch_param where epoch_no &gt;= 320 order by epoch_no ;
 epoch_no | max_block_size 
----------+----------------
      320 |          81920
      321 |          81920
      322 |          81920
      323 |          81920
      324 |          81920
      325 |          81920
      326 |          81920
      327 |          81920
      328 |          81920
      329 |          81920
      330 |          81920
      331 |          81920
      332 |          81920
      333 |          81920
      334 |          81920
      335 |          90112
      336 |          90112
(17 rows)
</code></pre>

CC BY-SA 4.0
2022-06-01T05:18:49.480Z
2022-06-01T05:39:07.137Z
2022-06-01T05:39:07.137Z
Erik de Castro Lopo
<p>I know the actual block size is 88KB but I can't find this value in the protocol parameters.</p>
<p>I have ran this command in Testnet and got the following:</p>
<pre><code>$ cardano-cli query protocol-parameters --testnet-magic 1097911063
{
    &quot;maxValueSize&quot;: 5000,
    &quot;minUTxOValue&quot;: null,
    &quot;minPoolCost&quot;: 340000000,
    &quot;monetaryExpansion&quot;: 3.0e-3,
    &quot;stakeAddressDeposit&quot;: 2000000,
    &quot;txFeeFixed&quot;: 155381,
    &quot;poolRetireMaxEpoch&quot;: 18,
    &quot;stakePoolDeposit&quot;: 500000000,
    &quot;maxBlockExecutionUnits&quot;: {
        &quot;memory&quot;: 80000000,
        &quot;steps&quot;: 40000000000
    },
    &quot;extraPraosEntropy&quot;: null,
    &quot;stakePoolTargetNum&quot;: 500,
    &quot;maxBlockHeaderSize&quot;: 1100,
    &quot;maxCollateralInputs&quot;: 3,
    &quot;txFeePerByte&quot;: 44,
    &quot;treasuryCut&quot;: 0.2,
    &quot;protocolVersion&quot;: {
        &quot;minor&quot;: 0,
        &quot;major&quot;: 6
    },
    &quot;collateralPercentage&quot;: 150,
    &quot;poolPledgeInfluence&quot;: 0.3,
    &quot;costModels&quot;: {
        &quot;PlutusScriptV1&quot;: {
            &quot;mapData-memory-arguments&quot;: 32,
            &quot;lessThanInteger-memory-arguments&quot;: 1,
            &quot;sha3_256-cpu-arguments-slope&quot;: 82363,
            &quot;bData-cpu-arguments&quot;: 150000,
            &quot;equalsByteString-cpu-arguments-intercept&quot;: 112536,
            &quot;equalsString-cpu-arguments-constant&quot;: 1000,
            &quot;modInteger-memory-arguments-slope&quot;: 1,
            &quot;equalsInteger-memory-arguments&quot;: 1,
            &quot;trace-cpu-arguments&quot;: 150000,
            &quot;iData-cpu-arguments&quot;: 150000,
            &quot;equalsByteString-memory-arguments&quot;: 1,
            &quot;unIData-memory-arguments&quot;: 32,
            &quot;consByteString-memory-arguments-intercept&quot;: 0,
            &quot;cekLamCost-exBudgetCPU&quot;: 29773,
            &quot;indexByteString-cpu-arguments&quot;: 150000,
            &quot;cekStartupCost-exBudgetMemory&quot;: 100,
            &quot;listData-memory-arguments&quot;: 32,
            &quot;divideInteger-cpu-arguments-constant&quot;: 148000,
            &quot;lessThanInteger-cpu-arguments-intercept&quot;: 179690,
            &quot;verifySignature-cpu-arguments-slope&quot;: 1,
            &quot;appendString-memory-arguments-intercept&quot;: 0,
            &quot;equalsString-cpu-arguments-slope&quot;: 1000,
            &quot;blake2b-cpu-arguments-intercept&quot;: 2477736,
            &quot;encodeUtf8-cpu-arguments-slope&quot;: 1000,
            &quot;mapData-cpu-arguments&quot;: 150000,
            &quot;equalsByteString-cpu-arguments-slope&quot;: 247,
            &quot;multiplyInteger-cpu-arguments-intercept&quot;: 61516,
            &quot;cekStartupCost-exBudgetCPU&quot;: 100,
            &quot;sndPair-memory-arguments&quot;: 32,
            &quot;sha3_256-cpu-arguments-intercept&quot;: 0,
            &quot;addInteger-cpu-arguments-slope&quot;: 0,
            &quot;constrData-memory-arguments&quot;: 32,
            &quot;divideInteger-memory-arguments-intercept&quot;: 0,
            &quot;cekForceCost-exBudgetCPU&quot;: 29773,
            &quot;equalsByteString-cpu-arguments-constant&quot;: 150000,
            &quot;modInteger-cpu-arguments-model-arguments-intercept&quot;: 425507,
            &quot;sliceByteString-memory-arguments-slope&quot;: 1,
            &quot;equalsString-memory-arguments&quot;: 1,
            &quot;cekLamCost-exBudgetMemory&quot;: 100,
            &quot;lessThanEqualsInteger-cpu-arguments-intercept&quot;: 145276,
            &quot;quotientInteger-memory-arguments-minimum&quot;: 1,
            &quot;consByteString-cpu-arguments-intercept&quot;: 150000,
            &quot;appendByteString-memory-arguments-slope&quot;: 1,
            &quot;lessThanByteString-cpu-arguments-slope&quot;: 248,
            &quot;lessThanByteString-memory-arguments&quot;: 1,
            &quot;multiplyInteger-cpu-arguments-slope&quot;: 11218,
            &quot;cekVarCost-exBudgetCPU&quot;: 29773,
            &quot;cekDelayCost-exBudgetMemory&quot;: 100,
            &quot;blake2b-cpu-arguments-slope&quot;: 29175,
            &quot;mkNilData-cpu-arguments&quot;: 150000,
            &quot;appendByteString-cpu-arguments-slope&quot;: 621,
            &quot;appendString-memory-arguments-slope&quot;: 1,
            &quot;lessThanInteger-cpu-arguments-slope&quot;: 497,
            &quot;chooseUnit-memory-arguments&quot;: 32,
            &quot;divideInteger-cpu-arguments-model-arguments-slope&quot;: 118,
            &quot;decodeUtf8-cpu-arguments-slope&quot;: 1000,
            &quot;chooseData-cpu-arguments&quot;: 150000,
            &quot;verifySignature-cpu-arguments-intercept&quot;: 3345831,
            &quot;modInteger-memory-arguments-minimum&quot;: 1,
            &quot;lessThanEqualsByteString-memory-arguments&quot;: 1,
            &quot;quotientInteger-cpu-arguments-constant&quot;: 148000,
            &quot;consByteString-memory-arguments-slope&quot;: 1,
            &quot;tailList-memory-arguments&quot;: 32,
            &quot;divideInteger-cpu-arguments-model-arguments-intercept&quot;: 425507,
            &quot;decodeUtf8-cpu-arguments-intercept&quot;: 150000,
            &quot;lessThanEqualsInteger-memory-arguments&quot;: 1,
            &quot;appendByteString-cpu-arguments-intercept&quot;: 396231,
            &quot;unMapData-memory-arguments&quot;: 32,
            &quot;chooseList-cpu-arguments&quot;: 150000,
            &quot;divideInteger-memory-arguments-minimum&quot;: 1,
            &quot;unListData-memory-arguments&quot;: 32,
            &quot;remainderInteger-cpu-arguments-constant&quot;: 148000,
            &quot;addInteger-memory-arguments-slope&quot;: 1,
            &quot;sha3_256-memory-arguments&quot;: 4,
            &quot;lessThanByteString-cpu-arguments-intercept&quot;: 103599,
            &quot;modInteger-cpu-arguments-constant&quot;: 148000,
            &quot;lessThanEqualsInteger-cpu-arguments-slope&quot;: 1366,
            &quot;appendByteString-memory-arguments-intercept&quot;: 0,
            &quot;listData-cpu-arguments&quot;: 150000,
            &quot;ifThenElse-memory-arguments&quot;: 1,
            &quot;cekApplyCost-exBudgetMemory&quot;: 100,
            &quot;sliceByteString-memory-arguments-intercept&quot;: 0,
            &quot;unIData-cpu-arguments&quot;: 150000,
            &quot;modInteger-cpu-arguments-model-arguments-slope&quot;: 118,
            &quot;equalsData-cpu-arguments-intercept&quot;: 150000,
            &quot;mkNilPairData-memory-arguments&quot;: 32,
            &quot;cekConstCost-exBudgetCPU&quot;: 29773,
            &quot;indexByteString-memory-arguments&quot;: 1,
            &quot;blake2b-memory-arguments&quot;: 4,
            &quot;lessThanEqualsByteString-cpu-arguments-slope&quot;: 248,
            &quot;cekDelayCost-exBudgetCPU&quot;: 29773,
            &quot;multiplyInteger-memory-arguments-slope&quot;: 1,
            &quot;remainderInteger-memory-arguments-slope&quot;: 1,
            &quot;subtractInteger-cpu-arguments-slope&quot;: 0,
            &quot;iData-memory-arguments&quot;: 32,
            &quot;cekBuiltinCost-exBudgetCPU&quot;: 29773,
            &quot;mkNilData-memory-arguments&quot;: 32,
            &quot;cekForceCost-exBudgetMemory&quot;: 100,
            &quot;trace-memory-arguments&quot;: 32,
            &quot;encodeUtf8-cpu-arguments-intercept&quot;: 150000,
            &quot;sha2_256-cpu-arguments-intercept&quot;: 2477736,
            &quot;headList-memory-arguments&quot;: 32,
            &quot;unBData-cpu-arguments&quot;: 150000,
            &quot;remainderInteger-memory-arguments-minimum&quot;: 1,
            &quot;unMapData-cpu-arguments&quot;: 150000,
            &quot;sha2_256-cpu-arguments-slope&quot;: 29175,
            &quot;modInteger-memory-arguments-intercept&quot;: 0,
            &quot;ifThenElse-cpu-arguments&quot;: 1,
            &quot;tailList-cpu-arguments&quot;: 150000,
            &quot;multiplyInteger-memory-arguments-intercept&quot;: 0,
            &quot;remainderInteger-memory-arguments-intercept&quot;: 0,
            &quot;consByteString-cpu-arguments-slope&quot;: 1000,
            &quot;lengthOfByteString-memory-arguments&quot;: 4,
            &quot;fstPair-memory-arguments&quot;: 32,
            &quot;mkPairData-cpu-arguments&quot;: 150000,
            &quot;appendString-cpu-arguments-intercept&quot;: 150000,
            &quot;verifySignature-memory-arguments&quot;: 1,
            &quot;sliceByteString-cpu-arguments-intercept&quot;: 150000,
            &quot;equalsData-cpu-arguments-slope&quot;: 10000,
            &quot;lessThanEqualsByteString-cpu-arguments-intercept&quot;: 103599,
            &quot;chooseList-memory-arguments&quot;: 32,
            &quot;nullList-memory-arguments&quot;: 32,
            &quot;unListData-cpu-arguments&quot;: 150000,
            &quot;equalsData-memory-arguments&quot;: 1,
            &quot;quotientInteger-cpu-arguments-model-arguments-slope&quot;: 118,
            &quot;sha2_256-memory-arguments&quot;: 4,
            &quot;quotientInteger-cpu-arguments-model-arguments-intercept&quot;: 425507,
            &quot;encodeUtf8-memory-arguments-intercept&quot;: 0,
            &quot;quotientInteger-memory-arguments-slope&quot;: 1,
            &quot;unConstrData-cpu-arguments&quot;: 150000,
            &quot;sliceByteString-cpu-arguments-slope&quot;: 5000,
            &quot;cekBuiltinCost-exBudgetMemory&quot;: 100,
            &quot;equalsInteger-cpu-arguments-slope&quot;: 1326,
            &quot;subtractInteger-memory-arguments-slope&quot;: 1,
            &quot;mkCons-cpu-arguments&quot;: 150000,
            &quot;chooseUnit-cpu-arguments&quot;: 150000,
            &quot;chooseData-memory-arguments&quot;: 32,
            &quot;bData-memory-arguments&quot;: 32,
            &quot;appendString-cpu-arguments-slope&quot;: 1000,
            &quot;decodeUtf8-memory-arguments-slope&quot;: 8,
            &quot;fstPair-cpu-arguments&quot;: 150000,
            &quot;unConstrData-memory-arguments&quot;: 32,
            &quot;sndPair-cpu-arguments&quot;: 150000,
            &quot;addInteger-memory-arguments-intercept&quot;: 1,
            &quot;cekConstCost-exBudgetMemory&quot;: 100,
            &quot;remainderInteger-cpu-arguments-model-arguments-intercept&quot;: 425507,
            &quot;equalsString-cpu-arguments-intercept&quot;: 150000,
            &quot;mkCons-memory-arguments&quot;: 32,
            &quot;mkPairData-memory-arguments&quot;: 32,
            &quot;lengthOfByteString-cpu-arguments&quot;: 150000,
            &quot;remainderInteger-cpu-arguments-model-arguments-slope&quot;: 118,
            &quot;cekApplyCost-exBudgetCPU&quot;: 29773,
            &quot;constrData-cpu-arguments&quot;: 150000,
            &quot;nullList-cpu-arguments&quot;: 150000,
            &quot;headList-cpu-arguments&quot;: 150000,
            &quot;decodeUtf8-memory-arguments-intercept&quot;: 0,
            &quot;subtractInteger-cpu-arguments-intercept&quot;: 197209,
            &quot;subtractInteger-memory-arguments-intercept&quot;: 1,
            &quot;encodeUtf8-memory-arguments-slope&quot;: 8,
            &quot;equalsInteger-cpu-arguments-intercept&quot;: 136542,
            &quot;quotientInteger-memory-arguments-intercept&quot;: 0,
            &quot;cekVarCost-exBudgetMemory&quot;: 100,
            &quot;unBData-memory-arguments&quot;: 32,
            &quot;addInteger-cpu-arguments-intercept&quot;: 197209,
            &quot;mkNilPairData-cpu-arguments&quot;: 150000,
            &quot;divideInteger-memory-arguments-slope&quot;: 1
        }
    },
    &quot;maxTxExecutionUnits&quot;: {
        &quot;memory&quot;: 16000000,
        &quot;steps&quot;: 10000000000
    },
    &quot;executionUnitPrices&quot;: {
        &quot;priceSteps&quot;: 7.21e-5,
        &quot;priceMemory&quot;: 5.77e-2
    },
    &quot;decentralization&quot;: 0,
    &quot;utxoCostPerWord&quot;: 34482,
    &quot;maxTxSize&quot;: 16384,
    &quot;maxBlockBodySize&quot;: 98304
}
</code></pre>
<p>I have looked for <code>90112</code> (since that's <code>88 * 1024</code> - in bytes), but no luck either.</p>
<p>What's the right way of getting the max block size from here?</p>

<cardano-cli><blockchain><blocksize>
Where can I find the max block size in the protocol parameters?
# Where can I find the max block size in the protocol parameters?

(Asked by: username_0 on 2022-06-01)

I know the actual block size is 88KB but I can't find this value in the protocol parameters.
I have ran this command in Testnet and got the following:
$ cardano-cli query protocol-parameters --testnet-magic 1097911063
{
    "maxValueSize": 5000,
    "minUTxOValue": null,
    "minPoolCost": 340000000,
    "monetaryExpansion": 3.0e-3,
    "stakeAddressDeposit": 2000000,
    "txFeeFixed": 155381,
    "poolRetireMaxEpoch": 18,
    "stakePoolDeposit": 500000000,
    "maxBlockExecutionUnits": {
        "memory": 80000000,
        "steps": 40000000000
    },
    "extraPraosEntropy": null,
    "stakePoolTargetNum": 500,
    "maxBlockHeaderSize": 1100,
    "maxCollateralInputs": 3,
    "txFeePerByte": 44,
    "treasuryCut": 0.2,
    "protocolVersion": {
        "minor": 0,
        "major": 6
    },
    "collateralPercentage": 150,
    "poolPledgeInfluence": 0.3,
    "costModels": {
        "PlutusScriptV1": {
            "mapData-memory-arguments": 32,
            "lessThanInteger-memory-arguments": 1,
            "sha3_256-cpu-arguments-slope": 82363,
            "bData-cpu-arguments": 150000,
            "equalsByteString-cpu-arguments-intercept": 112536,
            "equalsString-cpu-arguments-constant": 1000,
            "modInteger-memory-arguments-slope": 1,
            "equalsInteger-memory-arguments": 1,
            "trace-cpu-arguments": 150000,
            "iData-cpu-arguments": 150000,
            "equalsByteString-memory-arguments": 1,
            "unIData-memory-arguments": 32,
            "consByteString-memory-arguments-intercept": 0,
            "cekLamCost-exBudgetCPU": 29773,
            "indexByteString-cpu-arguments": 150000,
            "cekStartupCost-exBudgetMemory": 100,
            "listData-memory-arguments": 32,
            "divideInteger-cpu-arguments-constant": 148000,
            "lessThanInteger-cpu-arguments-intercept": 179690,
            "verifySignature-cpu-arguments-slope": 1,
            "appendString-memory-arguments-intercept": 0,
            "equalsString-cpu-arguments-slope": 1000,
            "blake2b-cpu-arguments-intercept": 2477736,
            "encodeUtf8-cpu-arguments-slope": 1000,
            "mapData-cpu-arguments": 150000,
            "equalsByteString-cpu-arguments-slope": 247,
            "multiplyInteger-cpu-arguments-intercept": 61516,
            "cekStartupCost-exBudgetCPU": 100,
            "sndPair-memory-arguments": 32,
            "sha3_256-cpu-arguments-intercept": 0,
            "addInteger-cpu-arguments-slope": 0,
            "constrData-memory-arguments": 32,
            "divideInteger-memory-arguments-intercept": 0,
            "cekForceCost-exBudgetCPU": 29773,
            "equalsByteString-cpu-arguments-constant": 150000,
            "modInteger-cpu-arguments-model-arguments-intercept": 425507,
            "sliceByteString-memory-arguments-slope": 1,
            "equalsString-memory-arguments": 1,
            "cekLamCost-exBudgetMemory": 100,
            "lessThanEqualsInteger-cpu-arguments-intercept": 145276,
            "quotientInteger-memory-arguments-minimum": 1,
            "consByteString-cpu-arguments-intercept": 150000,
            "appendByteString-memory-arguments-slope": 1,
            "lessThanByteString-cpu-arguments-slope": 248,
            "lessThanByteString-memory-arguments": 1,
            "multiplyInteger-cpu-arguments-slope": 11218,
            "cekVarCost-exBudgetCPU": 29773,
            "cekDelayCost-exBudgetMemory": 100,
            "blake2b-cpu-arguments-slope": 29175,
            "mkNilData-cpu-arguments": 150000,
            "appendByteString-cpu-arguments-slope": 621,
            "appendString-memory-arguments-slope": 1,
            "lessThanInteger-cpu-arguments-slope": 497,
            "chooseUnit-memory-arguments": 32,
            "divideInteger-cpu-arguments-model-arguments-slope": 118,
            "decodeUtf8-cpu-arguments-slope": 1000,
            "chooseData-cpu-arguments": 150000,
            "verifySignature-cpu-arguments-intercept": 3345831,
            "modInteger-memory-arguments-minimum": 1,
            "lessThanEqualsByteString-memory-arguments": 1,
            "quotientInteger-cpu-arguments-constant": 148000,
            "consByteString-memory-arguments-slope": 1,
            "tailList-memory-arguments": 32,
            "divideInteger-cpu-arguments-model-arguments-intercept": 425507,
            "decodeUtf8-cpu-arguments-intercept": 150000,
            "lessThanEqualsInteger-memory-arguments": 1,
            "appendByteString-cpu-arguments-intercept": 396231,
            "unMapData-memory-arguments": 32,
            "chooseList-cpu-arguments": 150000,
            "divideInteger-memory-arguments-minimum": 1,
            "unListData-memory-arguments": 32,
            "remainderInteger-cpu-arguments-constant": 148000,
            "addInteger-memory-arguments-slope": 1,
            "sha3_256-memory-arguments": 4,
            "lessThanByteString-cpu-arguments-intercept": 103599,
            "modInteger-cpu-arguments-constant": 148000,
            "lessThanEqualsInteger-cpu-arguments-slope": 1366,
            "appendByteString-memory-arguments-intercept": 0,
            "listData-cpu-arguments": 150000,
            "ifThenElse-memory-arguments": 1,
            "cekApplyCost-exBudgetMemory": 100,
            "sliceByteString-memory-arguments-intercept": 0,
            "unIData-cpu-arguments": 150000,
            "modInteger-cpu-arguments-model-arguments-slope": 118,
            "equalsData-cpu-arguments-intercept": 150000,
            "mkNilPairData-memory-arguments": 32,
            "cekConstCost-exBudgetCPU": 29773,
            "indexByteString-memory-arguments": 1,
            "blake2b-memory-arguments": 4,
            "lessThanEqualsByteString-cpu-arguments-slope": 248,
            "cekDelayCost-exBudgetCPU": 29773,
            "multiplyInteger-memory-arguments-slope": 1,
            "remainderInteger-memory-arguments-slope": 1,
            "subtractInteger-cpu-arguments-slope": 0,
            "iData-memory-arguments": 32,
            "cekBuiltinCost-exBudgetCPU": 29773,
            "mkNilData-memory-arguments": 32,
            "cekForceCost-exBudgetMemory": 100,
            "trace-memory-arguments": 32,
            "encodeUtf8-cpu-arguments-intercept": 150000,
            "sha2_256-cpu-arguments-intercept": 2477736,
            "headList-memory-arguments": 32,
            "unBData-cpu-arguments": 150000,
            "remainderInteger-memory-arguments-minimum": 1,
            "unMapData-cpu-arguments": 150000,
            "sha2_256-cpu-arguments-slope": 29175,
            "modInteger-memory-arguments-intercept": 0,
            "ifThenElse-cpu-arguments": 1,
            "tailList-cpu-arguments": 150000,
            "multiplyInteger-memory-arguments-intercept": 0,
            "remainderInteger-memory-arguments-intercept": 0,
            "consByteString-cpu-arguments-slope": 1000,
            "lengthOfByteString-memory-arguments": 4,
            "fstPair-memory-arguments": 32,
            "mkPairData-cpu-arguments": 150000,
            "appendString-cpu-arguments-intercept": 150000,
            "verifySignature-memory-arguments": 1,
            "sliceByteString-cpu-arguments-intercept": 150000,
            "equalsData-cpu-arguments-slope": 10000,
            "lessThanEqualsByteString-cpu-arguments-intercept": 103599,
            "chooseList-memory-arguments": 32,
            "nullList-memory-arguments": 32,
            "unListData-cpu-arguments": 150000,
            "equalsData-memory-arguments": 1,
            "quotientInteger-cpu-arguments-model-arguments-slope": 118,
            "sha2_256-memory-arguments": 4,
            "quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
            "encodeUtf8-memory-arguments-intercept": 0,
            "quotientInteger-memory-arguments-slope": 1,
            "unConstrData-cpu-arguments": 150000,
            "sliceByteString-cpu-arguments-slope": 5000,
            "cekBuiltinCost-exBudgetMemory": 100,
            "equalsInteger-cpu-arguments-slope": 1326,
            "subtractInteger-memory-arguments-slope": 1,
            "mkCons-cpu-arguments": 150000,
            "chooseUnit-cpu-arguments": 150000,
            "chooseData-memory-arguments": 32,
            "bData-memory-arguments": 32,
            "appendString-cpu-arguments-slope": 1000,
            "decodeUtf8-memory-arguments-slope": 8,
            "fstPair-cpu-arguments": 150000,
            "unConstrData-memory-arguments": 32,
            "sndPair-cpu-arguments": 150000,
            "addInteger-memory-arguments-intercept": 1,
            "cekConstCost-exBudgetMemory": 100,
            "remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
            "equalsString-cpu-arguments-intercept": 150000,
            "mkCons-memory-arguments": 32,
            "mkPairData-memory-arguments": 32,
            "lengthOfByteString-cpu-arguments": 150000,
            "remainderInteger-cpu-arguments-model-arguments-slope": 118,
            "cekApplyCost-exBudgetCPU": 29773,
            "constrData-cpu-arguments": 150000,
            "nullList-cpu-arguments": 150000,
            "headList-cpu-arguments": 150000,
            "decodeUtf8-memory-arguments-intercept": 0,
            "subtractInteger-cpu-arguments-intercept": 197209,
            "subtractInteger-memory-arguments-intercept": 1,
            "encodeUtf8-memory-arguments-slope": 8,
            "equalsInteger-cpu-arguments-intercept": 136542,
            "quotientInteger-memory-arguments-intercept": 0,
            "cekVarCost-exBudgetMemory": 100,
            "unBData-memory-arguments": 32,
            "addInteger-cpu-arguments-intercept": 197209,
            "mkNilPairData-cpu-arguments": 150000,
            "divideInteger-memory-arguments-slope": 1
        }
    },
    "maxTxExecutionUnits": {
        "memory": 16000000,
        "steps": 10000000000
    },
    "executionUnitPrices": {
        "priceSteps": 7.21e-5,
        "priceMemory": 5.77e-2
    },
    "decentralization": 0,
    "utxoCostPerWord": 34482,
    "maxTxSize": 16384,
    "maxBlockBodySize": 98304
}

I have looked for 90112 (since that's 88 * 1024 - in bytes), but no luck either.
What's the right way of getting the max block size from here?

**Tags:** cardano-cli, blockchain, blocksize

---

## 2 answers

### Answer by username_1 on 2022-06-02. Score: 4 | Accepted answer

You can get this info from the live chain protocol-parameters and filter on the string block, as per below:
$ cardano-cli query protocol-parameters --mainnet |grep -i block
    "maxBlockExecutionUnits": {
    "maxBlockHeaderSize": 1100,
    "maxBlockBodySize": 90112

90112 / 1024 = 88KB

> **Comments:**
> **username_0**: Ok, this is exactly what I was doing. So basically what this is telling me is that the maxBlockBodySize in Testnet is 96KB (98304 / 1024) instead of 88KB bytes. Is this correct?  
> **username_1**: I haven't tried this on testnet, but if you're getting 98304 then yeah it looks like they are running with a larger block size when compared to mainnet.  
> **username_0**: Yes, that's it. Cheers!  

---

### Answer by username_2 on 2022-06-01. Score: 0

You are looking in the wrong place. You are looking at the genesis config for one of the eras (Alonzo maybe?).
The max_block_size is set in the on-chain epoch paramaters which cardano-db-sync stores in the epoch_param table. My db-sync is only synced to epoch 336 so I do not get the latest epochs:
select epoch_no, max_block_size from epoch_param where epoch_no >= 320 order by epoch_no ;
 epoch_no | max_block_size 
----------+----------------
      320 |          81920
      321 |          81920
      322 |          81920
      323 |          81920
      324 |          81920
      325 |          81920
      326 |          81920
      327 |          81920
      328 |          81920
      329 |          81920
      330 |          81920
      331 |          81920
      332 |          81920
      333 |          81920
      334 |          81920
      335 |          90112
      336 |          90112
(17 rows)


---

