Returns the addresses of the bridge contracts on L1 and L2
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBridgeContracts \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBridgeContracts",
"params": []
}'
{
"jsonrpc": "2.0",
"result": {
"l1Erc20DefaultBridge": "0x927ddfcc55164a59e0f33918d13a2a210aa4ee65",
"l2Erc20DefaultBridge": "0x0000000000000000000000000000000000008006",
"l1WethBridge": "0x0000000000000000000000000000000000000000",
"l2WethBridge": "0x0000000000000000000000000000000000000000"
},
"id": 1
}
Returns the bridge contract addresses
The response is of type any
.
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBridgeContracts \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBridgeContracts",
"params": []
}'
{
"jsonrpc": "2.0",
"result": {
"l1Erc20DefaultBridge": "0x927ddfcc55164a59e0f33918d13a2a210aa4ee65",
"l2Erc20DefaultBridge": "0x0000000000000000000000000000000000008006",
"l1WethBridge": "0x0000000000000000000000000000000000000000",
"l2WethBridge": "0x0000000000000000000000000000000000000000"
},
"id": 1
}
Returns the addresses of the bridge contracts on L1 and L2
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBridgeContracts \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBridgeContracts",
"params": []
}'
{
"jsonrpc": "2.0",
"result": {
"l1Erc20DefaultBridge": "0x927ddfcc55164a59e0f33918d13a2a210aa4ee65",
"l2Erc20DefaultBridge": "0x0000000000000000000000000000000000008006",
"l1WethBridge": "0x0000000000000000000000000000000000000000",
"l2WethBridge": "0x0000000000000000000000000000000000000000"
},
"id": 1
}
Returns the bridge contract addresses
The response is of type any
.
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBridgeContracts \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBridgeContracts",
"params": []
}'
{
"jsonrpc": "2.0",
"result": {
"l1Erc20DefaultBridge": "0x927ddfcc55164a59e0f33918d13a2a210aa4ee65",
"l2Erc20DefaultBridge": "0x0000000000000000000000000000000000008006",
"l1WethBridge": "0x0000000000000000000000000000000000000000",
"l2WethBridge": "0x0000000000000000000000000000000000000000"
},
"id": 1
}