API Reference

zks_getBridgeContracts

Returns L1/L2 addresses of default bridges.

Example

Request

curl --location --request POST 'https://zksync-era-mainnet.unifra.io/v1/your-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBridgeContracts", "params": [  ]}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "l1Erc20DefaultBridge": "0x57891966931eb4bb6fb81430e6ce0a03aabde063",
        "l2Erc20DefaultBridge": "0x11f943b2c77b743ab90f4a0ae7d5a4e7fca3e102"
    },
    "id": 1
}

Language
Click Try It! to start a request and see the response here!