Across bridge

From Starchild-ai-agent/official-skills · View interactive version

Across bridge is an AI agent skill from the GitHub repository Starchild-ai-agent/official-skills. Bridge ETH and ERC-20 tokens across EVM chains via Across Protocol v3. One function for a quote, one function for the entire end-to-end bridge (approval + deposit + arrival verification). Use when the user wants to move tokens between chains (e.g. "bridge 50 USDC from Base to Arbitrum", "send ETH fr

How to use this skill

Skill file

🌉 Across Bridge

Bridge tokens between EVM chains using Across Protocol v3.

Across is an intent-based bridge: relayers front the liquidity on the

destination chain and get repaid on the origin chain, so settlement is fast

(seconds to a few minutes) and fees are low (0.05–0.5%).

When to Use

Supported Chains

Ethereum · Arbitrum · Optimism · Base · Polygon · BSC · Linea · zkSync · Scroll · Mantle

Supported Tokens

ETH · WETH · USDC · USDT · WBTC · DAI

How to Call

All operations are Python functions exposed under core.skill_tools. Because

the skill name contains a hyphen, use the _modules dict to access it:

python3 - <<'EOF'
from core.skill_tools import _modules
across = _modules["across-bridge"]
import json
q = across.bridge_quote(from_chain="base", to_chain="arbitrum",
                        token="USDC", amount=1, wallet="0x...")
print(json.dumps(q, indent=2))
EOF

`bridge_quote(from_chain, to_chain, token, amount, wallet=None)`

Get a live quote — no on-chain action. Returns output amount, fees, estimated

fill time, and (if wallet is provided) ready-to-sign approval + bridge

transactions.

`bridge_execute(from_chain, to_chain, token, amount, wallet, confirm_arrival=True)`

One call does everything:

  1. Fetches a fresh quote from Across /swap
  2. Sends ERC-20 approval to the SpokePool (if needed; skipped for native ETH)
  3. Sends the depositV3 bridge transaction
  4. Polls the destination-chain balance until funds arrive (or timeout)

Returns a full receipt with status, output_amount, approval_tx,

bridge_tx, and arrival_confirmed.

`bridge_status(origin_chain, deposit_tx_hash)`

Check the fill status of a submitted deposit via Across's status API.

Workflows

Just get a quote (no execution)

python3 - <<'EOF'
from core.skill_tools import _modules
across = _modules["across-bridge"]
import json
q = across.bridge_quote(from_chain="base", to_chain="arbitrum",
                        token="USDC", amount=50)
print(json.dumps(q, indent=2))
EOF

Key fields in the response:

Bridge end-to-end (the common case)

python3 - <<'EOF'
from core.skill_tools import _modules
across = _modules["across-bridge"]
import json
r = across.bridge_execute(from_chain="base", to_chain="arbitrum",
                          token="USDC", amount=1,
                          wallet="0x0B52...Eb16")
print(json.dumps(r, indent=2, default=str))
EOF

That single call handles approval + deposit + arrival verification. No need

to manually call wallet_transfer or encode calldata — the Across /swap

API returns ready-to-sign transactions and this skill dispatches them.

Check status of a submitted deposit

python3 - <<'EOF'
from core.skill_tools import _modules
across = _modules["across-bridge"]
import json
s = across.bridge_status(origin_chain="base", deposit_tx_hash="0x...")
print(json.dumps(s, indent=2))
EOF

Acceptance / Red-Flag Guidance

Good routes:

Warn the user before proceeding if:

Key Facts

handles wrapping/unwrapping automatically.

first. bridge_execute sends this automatically.

bridge_execute re-fetches right before broadcasting.

need native tokens on the origin chain for gas.

minutes. bridge_execute polls the destination balance for up to 180s.

No separate wallet connection needed.

Dependencies

Tested Routes

This skill was validated with a real on-chain bridge: 1 USDC Base → Arbitrum,

confirmed arrived on destination within ~35 seconds, fee 0.47%.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.