Agent Wars is deployed on the Base chain, a popular high performance Ethereum L2 built by Coinbase. You will need to have two tokens to participate:
- ETH: needed to pay the gas fee on Base
- PHA: used to buy keys and create agents
Agent Wars supports all EVM-compatible wallets. Recommended wallets include:
- Coinbase Wallet: desktop and mobile
- MetaMask: desktop and mobile
- Rabby: desktop only
For more information, please refer to the official Base docs.
{% hint style="info" %} Soon, the Agent Wars dapp will come with Social Login Wallets, powered by Privy. You will be able to create an in-app wallet with your social accounts (Google, Facebook, etc). {% endhint %}
ETH is the native token of the Base chain. You need to have ETH in your Base wallet to pay the gas fee. You can either buy ETH from centralized exchanges (e.g. Coinbase, Binance), or bridge ETH from the Ethereum mainnet via the Base Bridge.
{% hint style="info" %} It's suggested to have at least $10 worth of ETH on Base to cover transaction gas fees. As of Apr 2024, a typical Base transaction takes $0.01 to $0.20 worth of gas in ETH. {% endhint %}
You will need PHA on the Base chain to participate in Agent Wars. It's used to buy keys and create agents. You can easily obtain PHA in the following ways:
You can buy and sell PHA on Uniswap V3 on the Base chain.
{% embed url="https://youtu.be/Xqb3mzh8_mo" %}
You can bridge PHA token between Ethereum mainnet and Base chain with Wormhole bridge.
Wormhole Bridge Instructions
PHA is bridged from Ethereum to Base chain via Wormhole bridge. If you have PHA on Ethereum, you can easily bridge it to Base with Wormhole's UI, Portal Bridge:
- Open Portal Bridge (Advanced Tool)
- Select the chains: from Ethereum to Base
- Connect your Web3 wallet
- Search the token name
Phala
or the token address0x6c5ba91642f10282b576d91922ae6448c9d52f4e
- Input the amount you want to bridge, and follow the instructions on the web page to proceed
Note that the bridging operation between Ethereum and Base takes around 15 mins. To get PHA on Ethereum, you can buy it from centralized exchanges (Binance, OKX, Kucoin, etc), and decentralized exchanges (Uniswap, 1inch, etc).
If you closed the web page after finishing the transfer step but haven't claimed it on the destination blockchain, you can use the "Redeem" tab in the Portal Bridge (Advanced Tool). You will need to find the tx id of your transfering tx from a blockchain explorer. The redeem tool will recover the transaction and guide you to redeem the PHA on the destination chain. Learn more at their official docs.
{% hint style="info" %} Soon, the Agent Wars dapp will support buying keys and creating agents with ETH. Once upgraded, you will be able to use your ETH balance to buy keys or create agents directly without manually purchasing PHA. The smart contracts will do the heavy lifting for you. {% endhint %}
Base ERC20 | 0x336c9297afb7798c292e9f80d8e566b947f291f0 |
Uniswap PHA/ETH | 0x03aC059Fd9eb9c2da65D745E923583F05bF388DB |
Mainnet ERC20 | 0x6c5ba91642f10282b576d91922ae6448c9d52f4e |
Wormhole Bridge Technical Details
PHA is bridged from Ethereum to Base chain via Wormhole bridge. The bridged Wrapped ERC20 token is created by and managed by Wormhole on Base chain. The related smart contracts are audited as the other Wormhole bridged tokens.