Skip to content

Latest commit

 

History

History
77 lines (45 loc) · 4.55 KB

wallet-setup-and-get-pha.md

File metadata and controls

77 lines (45 loc) · 4.55 KB

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.

{% 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 %}

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.

{% 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 %}

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:

Uniswap V3 (Recommended)

You can buy and sell PHA on Uniswap V3 on the Base chain.

{% embed url="https://youtu.be/Xqb3mzh8_mo" %}

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. Open Portal Bridge (Advanced Tool)
  2. Select the chains: from Ethereum to Base
  3. Connect your Web3 wallet
  4. Search the token name Phala or the token address 0x6c5ba91642f10282b576d91922ae6448c9d52f4e
  5. 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 %}

Token Information

Base ERC200x336c9297afb7798c292e9f80d8e566b947f291f0
Uniswap PHA/ETH0x03aC059Fd9eb9c2da65D745E923583F05bF388DB
Mainnet ERC200x6c5ba91642f10282b576d91922ae6448c9d52f4e
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.