Resources and guides for building on Phala Network during hackathons.
WARNINGThis section is no longer recommended for deploying on Phala. To build and deploy securely and efficiently, please use the fully managed Phala Cloud platform instead. Check out the doc on how to get started.
Welcome to the Phala Hackathon Guide! This guide will provide you with all the necessary information to get started building on our platform. Whether you’re a seasoned developer or new to the ecosystem, this guide will help you navigate through the essential steps and resources for build on Phala’s Agent Contract.
Check out the an Agent Contract we deployed called the TEE Cheat Sheet!
If you want to know how to host HTML pages with hono, check out the Agent Contract template here.
Welcome to the Hackathon guide for Phala’s Agent Contracts. We are offering you the key to connecting to multiple sponsor’s bounties through our general-purpose program executing in a TEE (Trusted Execution) on Phala Network at ZERO cost & NO new wallet required.Why is Agent Contract Built DIFFERENT?!
💨 Ship Fast: Build and ship with familiar toolchain in minutes
⛑️ Secure: Execution guarded by rock solid TEE
🔒 Private: Host API keys and user privacy at ease
💎 Unstoppable: Powered by IPFS and Phala’s 40k+ decentralized TEE workers
:fire: hono/tinySupport: a small, simple, and ultrafast web framework built on Web Standards.
🧪 Vite Test Framework: Vite Testing Framework support, but you’re free to change the test framework to your desire.
Here are our feature templates:
RedPill Agent Contract - Get your FREE RedPill API Key and access top LLMs from OpenAI, Anthropic, Meta, Gwen, Mistral, and Google to create a Web3 x AI project for the hackathon.
Viem SDK Agent Contract - Learn about a new paradigm in transacting onchain with the Viem SDK Agent Contract Template with key features to:
Bonus Bounty: Reach the ETHGlobal finals, and you’ll snag another Ledger Nano X on us!How to qualify for as a top project?
(Strong Consideration) Integrate Agent Contract with the Viem SDK to interact on-chain with any EVM Chain or other sponsor projects at ETHGlobal to create a unique product.
(Strong Consideration) Build an AI x Web3 product with RedPill Agent Contract Template or any other AI related templates we support located in our docs
Deploy any custom Agent Contract that can be interacted with via HTTP requests
Take the RedPill and access top AI LLMs: Get an API Key on RedPill. This requires a code to get access. Reach out to the Phala Team to get access. In the meantime, use the free developer API key that is rate limited.
Try a New Paradigm in Transacting Onchain: Build on the viem Agent Contract Template where you can derive an account within a TEE and utilize the account to transact on any EVM chain.
Choose from aList of Agent Contract Templates or build a custom Agent Contract that connect to any API or uses an SDK of your choosing!
Run a local testnet with docker support. All you need to do to get a local testnet started is run:
Running the local testnet may return an error if port 8000 is already in use.
Copy
Ask AI
npm run dev
Make a Request to Your Local Build
Copy
Ask AI
# GET requestcurl http://127.0.0.1:8000/local# GET request with URL queriescurl http://127.0.0.1:8000/local?query1=one&query2=two# POST requestcurl http://127.0.0.1:8000/local -X POST -H 'content-type: application/json' -d '{"foo": "bar"}'
Thank you for participating in the Phala Hackathon. We look forward to seeing your innovative solutions and wish you the best of luck!Phala Network Team