Skip to main content

zks_getBridgeContracts RPC Method

Returns L1/L2 addresses of default bridges.

Updated on
Nov 2, 2023

zks_getBridgeContracts RPC Method

Parameters

This method does not accept any parameters

Returns

l1Erc20DefaultBridge
The address of the default bridge contract responsible for handling ERC-20 token transfers from the L1 network to the L2 network
l2Erc20DefaultBridge
The address of the default bridge contract responsible for handling ERC-20 token transfers from the L2 network to the L1 network
Request
1
curl https://docs-demo.zksync-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_getBridgeContracts","params":[ ],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free