0.1.7 • Published 8 months ago
@goat-sdk/plugin-zerodev-global-address v0.1.7
ZeroDev Global Address Plugin
Create global addresses that can receive tokens from multiple chains with ZeroDev.
Installation
npm install @goat-sdk/plugin-zerodev-global-address
yarn add @goat-sdk/plugin-zerodev-global-address
pnpm add @goat-sdk/plugin-zerodev-global-addressUsage
import { zeroDevGlobalAddress } from "@goat-sdk/plugin-zerodev-global-address";
const tools = await getOnChainTools({
wallet: // ...
plugins: [zeroDevGlobalAddress()],
});Tools
- Create global addresses that can receive tokens from multiple chains
- Automatic token bridging to your destination chain
- Support for multiple chains:
- Ethereum Mainnet
- Polygon
- Optimism
- Arbitrum
- Base
- Scroll
- Mode
- Support for different token types:
- Native tokens
- ERC20 tokens
- USDC
- Wrapped native tokens
Examples
Create a global address- creates a global address using the connected wallet settings.Create a global address on base- creates a global address on the Base chain.Create a global address for wallet 0x123...abc- creates a global address for the specific owner address.Create a global address on arbitrum with 30% slippage- creates a global address on Arbitum with a slippage of 30% (default slippage is 15%).