🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

clanker-wallet

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clanker-wallet

Human-approved blockchain transactions for AI agents. Agent proposes a tx, human reviews and signs it from the [web app](https://clanker-wallet.xyz). All communication is end-to-end encrypted.

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
11
175%
Maintainers
1
Weekly downloads
 
Created
Source

clanker-wallet

Human-approved blockchain transactions for AI agents. Agent proposes a tx, human reviews and signs it from the web app. All communication is end-to-end encrypted.

Install

npm install -g clanker-wallet

Or run without installing:

npx clanker-wallet
bunx clanker-wallet

Quick Start

# 1. Human goes to https://clanker-wallet.xyz, connects wallet, copies pairing JSON
# 2. Pair (one-time)
clanker-wallet pair '{"version":1,"pubkey":"ab12...","relay":"wss://...","wallet":"0x..."}'

# 3. Send a transaction (blocks until human approves or rejects)
clanker-wallet tx --chain 1 --to 0xRecipient --value 1000000000000000000 --reason "swap ETH for USDC"

# 4. Check status anytime
clanker-wallet status

Commands

pair

Pair with a human's web app. Run once — identity and pairing are saved to ~/.clanker-wallet/.

clanker-wallet pair '<pairing JSON from web app>'
# → {"agent_id":"agent_abc123","status":"paired","wallet":"0x...","relay":"wss://..."}

tx

Send a transaction request. Blocks until the human approves or rejects.

clanker-wallet tx \
  --chain 1 \
  --to 0xRecipient \
  --value 1000000000000000000 \
  --data 0x \
  --reason "swap ETH for USDC" \
  --urgency medium \
  --timeout 120000
# approved → {"tx_hash":"0x...","status":"approved"}
# rejected → {"status":"rejected","error":"..."} (exit code 1)
# timeout  → {"status":"timeout","error":"..."}  (exit code 2)

Flags:

FlagRequiredDefaultDescription
--chain <id>yesChain ID (1=Ethereum, 137=Polygon, 8453=Base)
--to <address>yesRecipient address
--value <wei>no0Value in wei (1 ETH = 1000000000000000000)
--data <hex>no0xCalldata hex
--reason <text>noShown to human
--urgency <level>nolow, medium, or high
--expected-outcome <text>noWhat will happen
--timeout <ms>no3600000How long to wait

status

Check current pairing status.

clanker-wallet status
# → {"agent_id":"agent_abc123","paired":true,"wallet":"0x...","relay":"wss://..."}

whoami

Show agent identity.

clanker-wallet whoami
# → {"agent_id":"agent_abc123","public_key":"ab12cd..."}

Exit Codes

CodeMeaning
0Success
1Rejected by human
2Timeout
3Connection/relay error
4Not paired
5Invalid arguments

State

Identity and pairing are persisted in ~/.clanker-wallet/:

~/.clanker-wallet/
  identity.json    # agent keypair (auto-generated on first use)
  pairing.json     # human's public key + relay URL

Common Chain IDs

ChainID
Ethereum1
Polygon137
Arbitrum42161
Base8453
Optimism10
Sepolia (testnet)11155111

Library Usage (Advanced)

The CLI wraps a TypeScript library. For programmatic use:

npm install clanker-wallet
import { ClankerWallet } from 'clanker-wallet'

const wallet = new ClankerWallet({ agentName: 'my-bot' })
wallet.pair(pairingJson)

const txHash = await wallet.requestTx({
  chain_id: 1,
  transaction: { to: '0x...', value: '1000000000000000000', data: '0x' },
  context: { reason: 'Buy tokens', urgency: 'medium' },
})

See full API: src/

Python SDK

pip install clanker-wallet
from clanker_wallet import ClankerWallet, Transaction, RequestTxOptions, TxContext

agent = ClankerWallet()
agent.pair(pairing_json)

tx_hash = await agent.request_tx(RequestTxOptions(
    chain_id=1,
    transaction=Transaction(to="0x...", value="1000000000000000000", data="0x"),
    context=TxContext(reason="Buy tokens"),
))

How It Works

  • Human opens clanker-wallet.xyz, connects wallet, gets a pairing code
  • Agent runs clanker-wallet pair — establishes E2E encrypted channel
  • Agent runs clanker-wallet tx — encrypts tx with nacl.box, sends via WebSocket relay
  • Human reviews tx details, simulation, risk flags in the web app
  • Human approves → wallet signs + broadcasts → agent gets the tx hash

All messages are encrypted end-to-end. The relay server never sees plaintext.

License

MIT

Keywords

wallet

FAQs

Package last updated on 24 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts