Wallet Setup & Get PHA

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

Set up wallets on Base chain

Agent Wars supports all EVM-compatible wallets. Recommended wallets include:

  1. Coinbase Wallet: desktop and mobile

  2. MetaMask: desktop and mobile

  3. Rabby: desktop only

For more information, please refer to the official Base docs.

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).

Get ETH on Base

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.

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.

Get PHA on Base

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.

Bridge from Ethereum (Advanced)

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:

  1. Select the chains: from Ethereum to Base

  2. Connect your Web3 wallet

  3. Search the token name Phala or the token address 0x6c5ba91642f10282b576d91922ae6448c9d52f4e

  4. 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.

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.

Token Information

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.

Last updated

Logo

COPYRIGHT © 2024 PHALA.LTD ALL RIGHTS RESERVED. May Phala be with you!