Skip to main content

zks_getBridgeContracts RPC Method

Returns L1/L2 addresses of default bridges.

Updated on
Oct 29, 2024

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
l1SharedDefaultBridge
The address of the default bridge contract on L1, allowing shared resources or generic assets to be moved between L1 and L2
l2SharedDefaultBridge
The address of the default bridge contract on L2, used in conjunction with the L1 shared default bridge to manage assets across layers
l1WethBridge
The address of the WETH (Wrapped Ether) bridge on L1
l2WethBridge
The address of the WETH bridge on L2
Request
1
curl https://docs-demo.abstract-testnet.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