fhe-x402-payment
FHE-encrypted x402 payments for OpenClaw agents. Use when the agent needs to make private on-chain payments, wrap/unwrap encrypted tokens, manage escrow jobs, register agent identity, give reputation feedback, or delegate balance viewing. Runs on Ethereum Sepolia (default) or Mainnet with Zama fhEVM. Supports three wallet modes — local private key, DFNS MPC, and Ledger hardware wallet.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/billynothack/confidential-agentic-payment-stackFHE x402 Payment Skill
Private, encrypted payments for autonomous agents on Ethereum using Zama's Fully Homomorphic Encryption (fhEVM). All payment amounts are encrypted on-chain — only the payer and payee can see them.
Quick Start
Set a wallet and RPC, then run any command:
# Minimal setup (local dev)
export USER_PRIVATE_KEY=0x...
export RPC_URL=https://sepolia.infura.io/v3/YOUR_KEY
# Check wallet info
run info
# Wrap 10 USDC into encrypted cUSDC
run wrap --amount 10
# Send 1 encrypted cUSDC
run pay --to 0xRecipient --amount 1
# Check balance (with optional decrypt)
run balance
run balance --decrypt true
Commands
Token Operations
| Command | Description | Required Args |
|---|---|---|
wrap | Wrap USDC into encrypted cUSDC (ERC-7984) | --amount |
unwrap | Initiate unwrap of cUSDC back to USDC (step 1 of 2) | --amount |
finalize-unwrap | Complete unwrap via KMS decryption proof | --handle (recommended) or --requestId --cleartextAmount --proof (legacy) |
pay | Send encrypted cUSDC via verifier relay | --to --amount |
balance | Check USDC + cUSDC balances | Optional: --decrypt true, --of 0xAddress |
info | Display wallet, network, and contract addresses | (none) |
Escrow (Agentic Commerce Protocol — ERC-8183)
| Command | Description | Required Args |
|---|---|---|
create-job | Create an escrow job with provider + evaluator | --provider --evaluator --expiry --description Optional: --hook |
fund-job | Encrypt budget + fund a job (3-step TX) | --jobId --amount |
complete-job | Approve or reject a submitted job | --jobId --action (approve/reject) Optional: --reason |
Identity & Reputation (ERC-8004)
| Command | Description | Required Args |
|---|---|---|
register-agent | Mint an agent identity NFT | --uri |
give-feedback | Submit proof-linked reputation feedback | --agentId --score --nonce Optional: --tag1 --tag2 --endpoint --feedbackURI --feedbackHash |
Delegation (FHE Viewing Keys)
| Command | Description | Required Args |
|---|---|---|
grant-view | Grant read access to your encrypted balance | --delegate Optional: --hours --permanent --contract |
revoke-view | Revoke a delegate's view access | --delegate |
view-as | Read another agent's balance via delegation | --delegator |
Demo Orchestrators
| Command | Description | Required Args |
|---|---|---|
research-and-visualize | Chain 3 paid API calls (search + LLM + image) | --query |
review-and-rate | Buy a code review + submit feedback | --code Optional: --language --score |
Wallet Modes
Set WALLET_MODE to choose explicitly, or omit for auto-detection (DFNS > user key):
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-billynothack-confidential-agentic-payment-stack": {
"enabled": true,
"auto_update": true
}
}
}