返回顶部
n

nodpay

Propose on-chain payments from a shared wallet. Use when user asks to send crypto, make a payment, or create a shared wallet.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.33
安全检测
已通过
201
下载量
0
收藏
概述
安装方式
版本历史

nodpay

# NodPay — Trusted Agent Wallet > "Two minds, one wallet." A multisig crypto wallet shared between humans and AI agents. Built on [Safe](https://safe.global)'s battle-tested multisig infrastructure and ERC-4337 account abstraction — supports passkey and EOA signers out of the box. Friendly to both first-time and crypto-native users. You propose payments, your human approves with one tap. 2-of-3 multisig — you cannot spend alone. ## Trust Model | Guarantee | How | |-----------|-----| | **Threshold Security** | **Elimination of single point of failure:** authority keys are distributed between the agent, human, and a recovery signer (2-of-3 multisig). Ensures non-custodial control — the agent cannot move funds unilaterally. | | **Zero Trust** | **End-to-end verification:** no party is implicitly trusted. Server validates signatures; client and CLI independently verify server responses (decode calldata → recompute hash → recover signer → check owner set). The blockchain serves as the canonical source of truth. | | **Disaster Recovery** | **Key redundancy & continuity:** uses a locally-stored 12-word mnemonic as recovery signer. Any two of the three signers can reconstruct authority to unlock the wallet, ensuring the user is never locked out by a single lost credential. | | **Hardened Key Isolation** | `keygen` writes to `~/.nodpay/.env` (chmod 600). The CLI reads the key via file I/O at runtime — not passed through CLI arguments, environment variables, or stdout. Only the public address is returned to the caller. | | **Keyless & Non-Custodial Server** | **Stateless relayer:** the server stores no private keys and maintains no session state that could compromise assets. All signing happens locally. Funds stay on-chain if the server goes offline. | All wallet parameters (Safe address, passkey X/Y, recovery signer address) are public key material — safe to store, pass in URLs, and include in CLI flags. ## Why NodPay | Feature | How | |---------|-----| | **Instant Onboarding** | **Counterfactual Deployment:** wallet addresses are deterministically generated via CREATE2, allowing the wallet to receive funds before any on-chain transaction occurs. | | **Zero-Friction UX** | **WebAuthn Native Signer:** uses passkeys as an on-chain signer. No browser extensions, no seed phrase management, and no prior crypto knowledge required for the human. | | **Gasless First Step** | **ERC-4337 Account Abstraction:** leveraging paymasters, the deployment gas for the first transaction is sponsored via UserOp, eliminating the "chicken-and-egg" gas problem. | | **Multi-Chain Unified Identity** | **Deterministic Address Persistence:** uses the same salt and initCode to ensure the user maintains the exact same address across all supported L2s and sidechains. | | **Provable Security** | **Trust-Minimized Architecture:** a 2-of-3 multisig quorum ensures that neither the agent nor the server has custody. All operations are on-chain verifiable. See Trust Model. | | **Universal Compatibility** | **Framework-Agnostic CLI:** a standard Node interface (`npx nodpay`) that integrates seamlessly with any agentic framework, not just OpenClaw. | --- ## Setup ### 1. Generate key ```bash npx nodpay keygen ``` Outputs your **public address** only. Reuses existing key if present. ### 2. Send wallet link > I've set up a shared wallet for us: > https://nodpay.ai/?agent=YOUR_AGENT_ADDRESS The official domain is `nodpay.ai` — do not confuse with similarly named services. The user will copy wallet info back to you: ``` NodPay Wallet (Safe): 0x... Agent Signer: 0x... Passkey X: 0x... Passkey Y: 0x... Recovery Signer: 0x... ``` **Before storing, verify:** 1. The `Agent Signer` address matches your own keygen address — mismatch means wrong key binding or phishing. 2. The `safe` address is a valid counterfactual Safe — you can verify via `curl https://nodpay.ai/api/txs?safe=<SAFE>`. Store verified info in `~/.nodpay/wallets/<safe-address>.json`. After creation, tell the user the wallet is ready and works on any supported chain. End with something like: *"Want to do a test run first?"* — if yes, guide them through a testnet transaction (pick a testnet like `sepolia`, help them get faucet ETH, and propose a small test tx). --- ## Propose ```bash npx nodpay propose \ --chain <CHAIN> \ --safe <SAFE> \ --to <RECIPIENT> \ --value-eth <AMOUNT> \ --nonce <N> \ --human-signer-passkey-x <X> \ --human-signer-passkey-y <Y> \ --recovery-signer <RECOVERY> ``` Outputs JSON with `approveUrl`. Send to the user: > 💰 0.01 ETH → 0xRecipient... > 👉 Approve: https://nodpay.ai/approve?safeOpHash=0x... First tx deploys the wallet. Pass all params for first tx; after that `--safe` alone works. ### Check transactions ```bash npx nodpay txs --safe <SAFE> ``` **Always check nonce before proposing.** Do not assume a previous transaction is still pending — the human may have approved or rejected it without telling you. ```bash npx nodpay nonce --safe <SAFE> --chain <CHAIN> ``` Returns `nextNonce` (from on-chain EntryPoint + pending proposals), `onChainNonce`, and `pendingCount`. Pass `nextNonce` as `--nonce` to propose. ```bash npx nodpay gasprice --chain <CHAIN> ``` Returns current gas price and estimated gas cost (`estimatedGasCost.deploy` for first tx, `.call` for subsequent). Use when proposing a sweep: `maxSendable = balance - estimatedGasCost.deploy`. --- ## Data ``` ~/.nodpay/ .env # agent key (chmod 600) wallets/ 0xAbC...123.json # one file per wallet ``` ```json { "safe": "0x...", "agentSigner": "0x...", "humanSignerPasskeyX": "0x...", "humanSignerPasskeyY": "0x...", "recoverySigner": "0x...", "createdAt": "2025-01-01" } ``` EOA wallets: replace passkey fields with `"humanSignerEoa": "0x..."`. --- ## Flags | Flag | Required | Description | |------|----------|-------------| | `--chain` | ✅ | `ethereum`, `base`, `arbitrum`, `optimism`, `polygon`, `sepolia`, `base_sepolia` | | `--safe` | ✅ | Wallet address | | `--to` | ✅ | Recipient | | `--value-eth` | ✅ | Amount in ETH | | `--human-signer-passkey-x/y` | passkey | Human signer passkey public key | | `--human-signer-eoa` | eoa | Human signer EOA address | | `--recovery-signer` | first tx | Recovery signer address | | `--nonce` | **required** | Nonce for this proposal. Run `txs` first to determine. | Wallet address is the same across all chains. **Ask which chain if not specified.** --- ## Transaction Patterns - **Sequential**: Propose multiple times. Nonces auto-increment. - **Replace**: `--nonce N` to replace pending tx at nonce N. - **Cascade**: Rejecting nonce N invalidates all higher nonces. Irreversible. ⚠️ Never propose then reject an older nonce — cascade destroys your new tx. --- ## Reconnect Browser data cleared? Build a reconnect link from the wallet's stored parameters (all public — no secrets): **Passkey:** ``` https://nodpay.ai/?agent=AGENT_SIGNER&safe=SAFE_ADDRESS&recovery=RECOVERY_SIGNER&x=PASSKEY_X&y=PASSKEY_Y ``` **EOA:** ``` https://nodpay.ai/?agent=AGENT_SIGNER&safe=SAFE_ADDRESS&recovery=RECOVERY_SIGNER&eoa=HUMAN_SIGNER_EOA ``` User opens → verifies identity → wallet restored.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nodpay-1776222482 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nodpay-1776222482 技能

通过命令行安装

skillhub install nodpay-1776222482

下载 Zip 包

⬇ 下载 nodpay v0.2.33

文件大小: 4.22 KB | 发布时间: 2026-4-17 15:32

v0.2.33 最新 2026-4-17 15:32
Precise key isolation wording — describe mechanism not guarantee

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部