
Gas Zip V2
0x2a37...2762bridge
Contract Level Prompt
Foundational semantic layer for AI interpretation.
This is the Gas Zip Depositor contract for the Ethereum network. Use it to convert native Ether to native token on a destination target network. Be sure to use the Gas.Zip ID of the destination chain when calling deposit function, NOT the native network id.
Use the Gas.Zip quote API to get bridge quotes: `https://backend.gas.zip/v2/quotes/<deposit_chain>/<deposit_wei>/<outbound_chains>`, where the `deposit_chain` and `outbout_chain` are the native network id's of the starting and ending networks of the bridge.
Use the Gas.Zip chains api to get the current list of supported chains as well as their respective min and max inbound and outbound transfer liquidity and Gas.Zip id (denoted by the `short` key).
deposit()
nonpayableFunctional Prompt
Call this function with a non-zero `value` of Ether to receive native token on the destination chain. IMPORTANT: The id number for the `chains` input is the Gas.Zip ID (`short`), not the native network id. Chain ids can be fetched from the Gas.Zip chains API by calling `https://backend.gas.zip/v2/chains`. This function takes the target address as a `bytes32` rather than an `address to support non-EVM destination chains.
Input Parameters
input
chainsuint256
The Gas.Zip short ID for the destination chain.
input
toaddress
The address on the destination chain formatted as a `bytes32` that will receive the bridged native token.
Output Parameters
No output parameters.