Phala Network Docs
  • Home
    • 👾Phala Network Docs
  • Overview
    • ⚖️Phala Network
      • 💎Phala Cloud
      • 🥷Dstack
      • 🔐GPU TEE
    • 💎PHA Token
      • 🪙Introduction
      • 👐Delegation
        • Delegate to StakePool
        • What is Vault
        • What is Share
        • WrappedBalances & W-PHA
        • Examples of Delegation
        • Use Phala App to Delegate
        • Estimate Your Reward
      • 🗳️Governance
        • Governance Mechanism
        • Join the Council
        • Voting for Councillors
        • Apply for Project Funding
        • Phala Treasury
        • Phala Governance
        • Setting Up an Account Identity
  • Phala Cloud
    • 🚀Getting Started
      • Sign-up for Cloud Account
      • Start from Cloud UI
      • Start from Cloud CLI
      • Start from Template
    • 🟧Launch an Eliza Agent
    • 📦Create CVM
      • Create CVM with Docker Compose
      • Create CVM with Private Docker Image
      • Set Secure Environment Variables
      • Access Your Applications
      • Setting Up Custom Domain
      • Debug Your Application
      • Deployment Cheat Sheet
    • ⚙️CVM Management
      • Upgrade Application
      • Resize Resources
      • Check Logs
      • Private Log Viewer
    • 🔄Deploy Docker App in TEE
      • Expose Service Port
      • Generate RA Report
      • Access Database
      • Create Crypto Wallet
    • 🛳️Setup a CI/CD Pipeline
    • 🛠️Phala Cloud CLI Reference
      • phala
        • auth
        • cvms
        • docker
        • simulator
    • Production Checklist
    • ❓FAQs
    • 🔍Troubleshooting
    • 📖Glossary
    • 📋References
    • 🔒Use Cases
      • TEE with AI
      • TEE with FHE and MPC
      • TEE with ZK and ZKrollup
  • Dstack
    • Overview
    • Getting Started
    • Hardware Requirements
    • Design Documents
      • Decentralized Root-of-Trust
      • Key Management Protocol
      • Zero Trust HTTPs (TLS)
    • Acknowledgement
  • LLM in GPU TEE
    • 👩‍💻Host LLM in GPU TEE
    • 🔐GPU TEE Inference API
    • 🏎️GPU TEE Benchmark
  • Tech Specs
    • ⛓️Blockchain
      • Blockchain Entities
      • Cluster of Workers
      • Secret Key Hierarchy
  • References
    • 🔐Setting Up a Wallet on Phala
      • Acquiring PHA
    • 🌉SubBridge
      • Cross-chain Transfer
      • Supported Assets
      • Asset Integration Guide
      • Technical Details
    • 👷Community Builders
    • 🤹Hackathon Guides
      • ETHGlobal Singapore
      • ETHGlobal San Francisco
      • ETHGlobal Bangkok
    • 🤯Advanced Topics
      • Cross Chain Solutions
      • System Contract and Drivers
      • Run Local Testnet
      • SideVM
    • 🆘Support
      • Available Phala Chains
      • Resource Limits
      • Transaction Costs
      • Compatibility Matrix
      • Block Explorers
      • Faucet
    • ⁉️FAQ
  • Compute Providers
    • 🙃Basic Info
      • Introduction
      • Gemini Tokenomics (Worker Rewards)
      • Budget balancer
      • Staking Mechanism
      • Requirements in Phala
      • Confidence Level & SGX Function
      • Rent Hardware
      • Error Summary
    • 🦿Run Workers on Phala
      • Solo Worker Deployment
      • PRBv3 Deployment
      • Using PRBv3 UI
      • PRB Worker Deployment
      • Switch Workers from Solo to PRB Mode
      • Headers-cache deployment
      • Archive node deployment
    • 🛡️Gatekeeper
      • Collator
      • Gatekeeper
  • Web Directory
    • Discord
    • GitHub
    • Twitter
    • YouTube
    • Forum
    • Medium
    • Telegram
  • Legacy
    • Information
    • ⚒️Phala SDK
    • 👨‍🚀Builders Program
    • 🥷AI Agent Contract
      • WapoJS Functions
      • Phala Agent Gateway
  • AI Agent Contract (Legacy)
    • 👩‍💻Getting Started
      • Build Your First AI Agent Contract
      • Build An Agent to Transact Onchain
      • Build Your AI Agent Contract with OpenAI
      • Build Your AI Agent Contract with LangChain
      • Integrate with 3rd Party API with HTTP Request
      • Run a Local Testnet With Docker
      • AI Agent Contract Templates
    • 🧙‍♂️Examples
      • Create a Weather Agent w/ Function Calling
    • ⛓️Supported Chains
    • FAQ
  • Agent Wars (Legacy)
    • 📜Introduction
    • 💸Tokenomics
    • ▶️Getting Started
      • Wallet Setup & Get PHA
      • Buy and Sell Keys
    • 🧑‍🏫Tutorial
Powered by GitBook
LogoLogo

Participate

  • Compute Providers
  • Node
  • Community
  • About Us

Resources

  • Technical Whitepaper
  • Token Economics
  • Docs
  • GitHub

More

  • Testnet
  • Explorer
  • Careers
  • Responsible Disclosure

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

On this page
  • Set up wallets on Base chain
  • Get ETH on Base
  • Get PHA on Base
  • Uniswap V3 (Recommended)
  • Bridge from Ethereum (Advanced)
  • Token Information

Was this helpful?

Edit on GitHub
  1. Agent Wars (Legacy)
  2. Getting Started

Wallet Setup & Get PHA

PreviousGetting StartedNextBuy and Sell Keys

Last updated 26 days ago

Was this helpful?

WARNING

This section is no longer recommended for deploying on Phala. To build and deploy securely and efficiently, please use the fully managed platform instead. Check out the doc on how to .

Agent Wars is deployed on the , 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. : desktop and mobile

  2. : desktop and mobile

  3. : desktop only

For more information, please refer to .

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. , ), or bridge ETH from the Ethereum mainnet via the .

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:

Uniswap V3 (Recommended)

Bridge from Ethereum (Advanced)

You can bridge PHA token between Ethereum mainnet and Base chain with Wormhole bridge.

Wormhole Bridge Instructions
  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).

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

Base ERC20

Uniswap PHA/ETH

Mainnet ERC20

Wormhole Bridge Technical Details

You can on the Base chain.

PHA is bridged from Ethereum to Base chain via bridge. If you have PHA on Ethereum, you can easily bridge it to Base with Wormhole's UI, Portal Bridge:

Open

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 .

PHA is bridged from Ethereum to Base chain via 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.

▶️
Phala Cloud
get started
Base chain
Coinbase Wallet
MetaMask
Rabby
the official Base docs
Coinbase
Binance
Base Bridge
buy and sell PHA on Uniswap V3
Wormhole
Portal Bridge (Advanced Tool)
their official docs
Wormhole
0x336c9297afb7798c292e9f80d8e566b947f291f0
0x03aC059Fd9eb9c2da65D745E923583F05bF388DB
0x6c5ba91642f10282b576d91922ae6448c9d52f4e