curl --request POST \
--url https://nd-995-911-243.p2pify.com/afb8312f3710a5bc469f4c87cad3a2e4 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getMainContract",
"params": []
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"contractAddress": "<string>"
}
}curl --request POST \
--url https://nd-995-911-243.p2pify.com/afb8312f3710a5bc469f4c87cad3a2e4 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getMainContract",
"params": []
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"contractAddress": "<string>"
}
}zks_getMainContract API method is designed to return the address of the main zkSync Era smart contract the L1. This contract address is fundamental for developers and applications interfacing with the zkSync network.
noneresult — the address of the zkSync Era main contract on the L1 blockchain.Was this page helpful?