zks_getMainContract
Returns the address of the ZKsync Era contract.
Parameters
None.
Response
The address of the main ZKsync Era contract on the network.
Example
Replace YOUR-API-KEY
with an API key from your Infura dashboard.
Request
- cURL
- WSS
curl https://zksync-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getMainContract", "params": []}'
wscat -c wss://zksync-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getMainContract", "params": []}'
Response
- JSON
{
"jsonrpc": "2.0",
"result": "0x32400084c286cf3e17e7b677ea9583e60a000324",
"id": 1
}