POST
/
zks_getMainContract
curl --request POST \
  --url https://api.mainnet.abs.xyz/zks_getMainContract \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "zks_getMainContract",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "result": "0x32400084c286cf3e17e7b677ea9583e60a000324",
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_getMainContract
required

The method to call

id
integer
default:1
required

Request identifier

params
any[]

No parameters

Response

200 - application/json
Returns the main contract address
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The main contract address (20 bytes)

Example:

"0x32400084c286cf3e17e7b677ea9583e60a000324"