Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 797 Bytes

File metadata and controls

41 lines (32 loc) · 797 Bytes
description Returns 'true' if the provided block number is already connected to a batch that was already verified, otherwise false

zkevm_isBlockConsolidated

Parameters:

String - hash of block

Boolean - if true it returns the full transaction objects, if false, only the hashes of the transactions; defaults to false

Returns

Boolean - result of consolidated

Example:

{% code overflow="wrap" %}

// Request
curl https://polygon-zkevm.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" 
--data '{
    "jsonrpc": "2.0",
    "method": "zkevm_isBlockConsolidated",
    "params": [
        "0x2"
    ],
    "id": 1
}'

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": true
}

{% endcode %}