跳到正文
Skillpedia
安全7.0k · #13673

Privy

它能做什么

这项技能涵盖 Privy 钱包和身份验证平台,用于构建持有并转移加密资产的应用。它适合希望实现用户登录和可编程钱包、又不想从零搭建钱包基础设施的开发者。

适用场景

  • ✓当你希望用户在应用中登录并获得内嵌钱包的时候。
  • ✓当你需要为钱包交易设置支出限额或审批规则时。
  • ✓当你正在构建带有可编程控制的金库或智能体钱包的时候。

技能链接

https://github.com/internet-court/internet-court-skill/blob/main/vendored/privy/privy/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/internet-court/internet-court-skill/blob/main/vendored/privy/privy/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我希望我的应用让用户登录并获得内嵌钱包,并设置每日支出限额。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在你的应用中设置 Privy 登录,为用户创建钱包,并应用控制允许哪些交易的政策。它会使用你的应用 ID 和密钥,调用 Privy SDK 和 REST API。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Privy Skill Reference

Product summary

Privy is a programmable wallet infrastructure platform for building financial applications. It provides embedded wallets, authentication, transaction execution, and policy controls across 50+ blockchains including Ethereum, Solana, Bitcoin, and Tempo. Agents use Privy to authenticate users, create and manage wallets, execute transactions, enforce spending policies, and build complete financial products without building wallet infrastructure from scratch.

Key files and commands:

  • Dashboard: https://dashboard.privy.io (configure apps, login methods, policies)
  • App ID and App Secret: Found in Dashboard > App Settings > Basics
  • Client ID: Required for mobile/non-web platforms (Dashboard > App Settings > Clients)
  • REST API: https://api.privy.io/v1/ (requires Basic Auth with app ID:secret)
  • SDKs: React (@privy-io/react-auth), Node.js (@privy-io/node), Swift, Android, Flutter, Java, Go, Rust, Ruby
  • Primary docs: https://docs.privy.io

When to use

Reach for Privy when:

  • Building consumer apps that need user authentication + embedded wallets
  • Creating organization or treasury wallets with multi-sig controls
  • Building AI agents that need to hold assets and transact autonomously
  • Implementing spending policies, transaction limits, or approval workflows
  • Executing transactions across multiple blockchains from a single interface
  • Migrating users from another wallet provider
  • Setting up funding flows (fiat onramps, crypto deposits, card spend)
  • Implementing yield integrations or token swaps
  • Requiring role-based access control or delegation patterns

Do not use Privy for: pure authentication without wallets (use Auth0, Firebase instead), or if you need complete control over key management without any abstraction.

Quick reference

SDK Installation

Platform Package Command
React @privy-io/react-auth npm install @privy-io/react-auth
Node.js @privy-io/node npm install @privy-io/node
React Native @privy-io/react-native-auth npm install @privy-io/react-native-auth
Swift Privy Swift SDK Via Swift Package Manager
Android Privy Android SDK Via Gradle

Core Concepts

Concept Definition Use case
User Individual authenticated in your app Consumer wallets, personal accounts
Wallet Blockchain account (embedded or external) Holding assets, signing transactions
Owner Entity with full control (user, auth key, or quorum) Determines who can modify wallet
Signer Additional party with scoped permissions Server automation, delegated access
Policy Rules constraining wallet actions Spending limits, recipient whitelists
Authorization Key P256 cryptographic key for server control Backend wallet management
Key Quorum M-of-K multi-sig approval Shared control, treasury operations

Authentication Methods

Configure in Dashboard > Configuration > Authentication:

  • Email / SMS / WhatsApp
  • Social (Google, Discord, Twitter, Farcaster, etc.)
  • Passkeys (WebAuthn)
  • External wallets (MetaMask, Phantom)
  • Custom JWT (bring your own auth provider)
  • Guest accounts (instant sign-in)

Wallet Control Models

Model Owner Signers Use case
User-owned User None Self-custodial consumer wallets
User + server User Server (scoped) Automated trading, limit orders
App-owned Auth key None Treasury, bots, agents
Custodial Licensed custodian None Institutional FBO accounts

REST API Headers (Required)

Authorization: Basic <base64(app_id:app_secret)>
privy-app-id: <app_id>
Content-Type: application/json

Common Wallet Actions

Action Endpoint Purpose
Create wallet POST /v1/wallets Provision new wallet
Get wallet GET /v1/wallets/{id} Fetch wallet details
Send transaction POST /v1/wallets/{id}/rpc Execute blockchain action
Get balance GET /v1/wallets/{id}/balance Check asset holdings
Create policy POST /v1/policies Define spending rules
Create user POST /v1/users Onboard new user

Decision guidance

When to use embedded vs external wallets

Scenario Embedded External
New users, no existing wallet ✓ ✗
Users have Met
常见问题

我在哪里找到应用 ID 和密钥?

该技能说明,它们位于 Privy 控制台的应用设置(App Settings)中的基础(Basics)部分。

它支持哪些链?

该技能说明,Privy 支持 50 多条区块链,包括以太坊、Solana 和比特币。

它可以限制智能体的支出金额吗?

可以。该技能涵盖政策、支出限额和审批流程。

详情

作者的原始描述

Use when building wallet infrastructure, authentication systems, or financial applications. Reach for Privy when you need to create embedded wallets, manage user authentication, control wallet permissions with policies, execute transactions across blockchains, or build treasury/agent wallets with programmable controls.

repo: internet-court/internet-court-skill

热度

GitHub 星标
7.0k
排名
#13673
许可证
—
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能