WaaP (Wallet as a Protocol) Documentation

website·Indexed 34 days ago

https://docs.waap.human.tech/

A multi-chain Web3 wallet supporting EVM, Sui, and Solana with keys held in an attested Trusted Execution Environment. Documentation includes SDK and CLI references, implementation guides for apps and AI agents, and information on Squid Mode and the Gas Tank Console.

Tokens
1.9K
Snippets
4
Records
26
Agent score
66%

What's inside WaaP

  1. Overview of WaaP (Wallet as a Protocol)

    WaaP is a multi-chain Web3 wallet by human.tech that supports EVM, Sui, and Solana. It provides protected self-custody where signing keys are held in an attested Trusted Execution Environment (TEE) rather than on the user's device. To prevent unauthorized signing, every transaction is gated by a Policy Engine that verifies chain bytes and issues a single-use approval bound to a specific transaction digest. WaaP is EIP-1193 compatible and supports 1-click onboarding via email, phone, or social login.
  2. Implement Multi-chain Payouts with WaaP Squid Mode

    Create a Node.js payout runner to pay contributors on Base, Sui, and Solana from a single WaaP account and budget. The system uses a ledger to prevent duplicate payments and operates without private keys in the agent's environment.
  3. Choose between WaaP SDK and CLI

    Depending on the target environment, WaaP provides two primary integration methods:

    • For browser-based decentralized applications (dapps), use the WaaP SDK.
    • For AI agents and automation scripts, use the WaaP CLI.
    # SDK for browser dapps
    npm install @human.tech/waap-sdk
    
    # CLI for AI agents and scripts
    npm install @human.tech/waap-cli
  4. Build a DAO Governance Voting Agent with WaaP CLI

    Create an autonomous agent that votes on Snapshot proposals. The implementation includes EIP-712 signing, ENS resolution, and enclave-held keys signed via WaaP CLI.
  5. Build a Recurring Payments Agent with WaaP CLI

    Implement an autonomous agent to handle subscriptions, payroll, DAO contributor payments, and recurring donations using enclave-held keys signed through the WaaP CLI.
  6. Build a Sui Portfolio Rebalancer with Cetus Aggregator

    Implement an autonomous grid-trading rebalancer on Sui that monitors a Cetus pool and routes swaps through the Cetus Aggregator for optimal execution to maintain a target USD allocation, signed via WaaP CLI with enclave-held keys.
  7. Build an autonomous yield agent on Cetus Protocol (Sui)

    WaaP provides a multi-phase guide to building a yield agent on the Cetus Protocol (Sui). The agent is signed via the WaaP CLI and evolves through the following stages:

    • Phase 1: Read-only monitoring of Cetus pools and price movement detection.
    • Phase 2: Opening positions, earning trading fees, and auto-repositioning.
    • Phase 3: Implementing volatility-based range optimization to adjust earning zones.
    • Phase 4: Scanning and ranking all Cetus pools by yield.
    • Phase 5: Integrating broader Sui DeFi landscape visibility for situational awareness.
  8. Implement a Cross-chain Portfolio Rebalancer with Squid Mode

    Build an agent that manages addresses on EVM, Sui, and Solana under a single WaaP account. It can read balances and move value between chains to maintain a target allocation using one login and one policy record, without storing private keys in the agent's environment.
  9. Build a Uniswap v3 Concentrated-Liquidity Rebalancer with WaaP CLI

    Implement an agent that monitors Uniswap v3 positions for out-of-range drift. When drift is detected, the agent removes liquidity, collects fees, and re-deploys at a new range using enclave-held keys via the WaaP CLI.