generate_bridge_code
Generate TypeScript code for bridging assets between Arbitrum layers (L1/L2/L3) using the Arbitrum SDK, supporting ETH and ERC20 token transfers.
Instructions
Generate TypeScript code for Arbitrum asset bridging using the Arbitrum SDK. Supports ETH/ERC20 bridging L1<->L2 and L1->L3.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bridge_type": "<bridge_type>"
},
"name": "generate_bridge_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bridge_type | Yes | Type of bridging operation to generate code for | |
| amount | No | Amount to bridge (in ETH or token units) | 0.1 |
| token_address | No | L1 token address (required for erc20 operations) | |
| destination_address | No | Destination address (for deposit_to operations) |