Skip to content

CAIP Discussion: CLI Wallet Protocol (CWP) #396

@arein

Description

@arein

CLI Wallet Protocol (CWP)

A standard protocol for CLI applications to discover and interact with wallet providers through executable plugins on PATH.

Problem

CLI-based blockchain tools hardcode support for specific wallet providers, creating tight coupling. There's no CLI equivalent of EIP-6963 (browser wallet discovery).

Proposed Solution

  • Binary naming convention: wallet-<name> executables on PATH
  • JSON stdin/stdout communication: Avoids shell escaping issues
  • Standard operations: info, accounts, sign-message, sign-typed-data, sign-transaction, send-transaction
  • Semantic exit codes: Enable orchestration and error handling
  • Orchestrator CLI: wallet binary discovers providers and delegates

Inspiration

Reference Implementation

The full draft spec will be submitted as a PR.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions