abstract-onboard

Review·Scanned 2/18/2026

This skill provides Node.js scripts to deploy contracts, bridge ETH, swap tokens, and manage AGW on Abstract L2. It instructs running shell commands (e.g., node scripts/create-agw.js), requires WALLET_PRIVATE_KEY, and connects to https://api.mainnet.abs.xyz and other RPC/HTTP endpoints.

from clawhub.ai·vbfae291·32.2 KB·0 installs
Scanned from 1.0.0 at bfae291 · Transparency log ↗
$ vett add clawhub.ai/masoncags-tech/abstract-onboardReview findings below

Abstract Onboard

Everything an agent needs to operate on Abstract.

Quick Start

Create Abstract Global Wallet (AGW)

AGW is a smart contract wallet that earns XP on Abstract. Essential for agents!

export WALLET_PRIVATE_KEY=0x...
node scripts/create-agw.js

Your EOA becomes the signer, AGW is a separate smart contract address.

Check Balances

node scripts/check-balances.js <wallet> all

Bridge ETH to Abstract

export WALLET_PRIVATE_KEY=0x...
node scripts/relay-bridge.js --from base --amount 0.01

Deploy a Contract

export WALLET_PRIVATE_KEY=0x...
node scripts/deploy-abstract.js ./artifacts/MyContract.json "constructor-arg"

Transfer Tokens

export WALLET_PRIVATE_KEY=0x...
node scripts/transfer.js --to 0x... --amount 0.01           # ETH
node scripts/transfer.js --to 0x... --amount 100 --token USDC  # Token

Swap Tokens

export WALLET_PRIVATE_KEY=0x...
export DEX_ROUTER=0x...  # Set DEX router address
node scripts/swap-tokens.js --from ETH --to USDC --amount 0.01

Call Any Contract

# Read
node scripts/call-contract.js --address 0x... --abi ./abi.json --function balanceOf --args 0x1234

# Write
export WALLET_PRIVATE_KEY=0x...
node scripts/call-contract.js --address 0x... --abi ./abi.json --function transfer --args 0x1234,100 --write

Key Information

ItemValue
Chain ID2741
RPChttps://api.mainnet.abs.xyz
Explorerhttps://abscan.org
Bridgehttps://relay.link/bridge/abstract
USDC0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1
WETH0x3439153EB7AF838Ad19d56E1571FBD09333C2809

Scripts

ScriptPurpose
create-agw.jsCreate Abstract Global Wallet (earns XP!)
check-balances.jsCheck ETH and token balances
relay-bridge.jsBridge ETH from other chains
deploy-abstract.jsDeploy contracts to Abstract
transfer.jsSend ETH or tokens
swap-tokens.jsTrade tokens via DEX
call-contract.jsCall any contract function

References

FileContents
agw.mdAbstract Global Wallet guide (XP, activation)
hardhat.config.jsWorking Hardhat config for Abstract
addresses.mdKey contract addresses
troubleshooting.mdCommon errors and fixes

Common Issues

  1. Gas estimation fails → Use Hardhat, not foundry-zksync
  2. Compiler errors → Use Solidity 0.8.x with zksolc
  3. TX stuck → Check gas price, verify on abscan.org

See references/troubleshooting.md for detailed solutions.

Dependencies

# Core dependencies
npm install ethers zksync-ethers viem

# For contract deployment
npm install @matterlabs/hardhat-zksync

# For AGW (Abstract Global Wallet)
npm install @abstract-foundation/agw-client