Skip to main content

CLI for ICRC-1 tokens (ckBTC, ckETH, ICP) on the Internet Computer

Project description

ICW - ICP Wallet CLI

Simple CLI for managing ICRC-1 tokens (ckBTC, ckETH, ICP) on the Internet Computer.

Install

pip install internet-computer-wallet

Usage

# Check balance (auto-converts to USD)
icw balance
icw balance -t cketh
icw balance -p <principal> -s 1  # specific principal + subaccount

# Transfer tokens
icw transfer <recipient> 0.001
icw transfer <recipient> 0.001 -s 1 -f 2  # to subaccount 1, from subaccount 2

# Token info + current price
icw info
icw info -t icp

# Identity management
icw id              # current identity + principal
icw id list         # list all identities
icw id use <name>   # switch identity
icw id new <name>   # create new identity

Output

All commands output JSON for easy parsing:

{
  "token": "ckBTC",
  "balance": 0.001,
  "raw": 100000,
  "usd": 97.0,
  "price": 97000.0,
  "principal": "abc-xyz"
}

Options

  • -t, --token: Token (ckbtc, cketh, icp). Default: ckbtc
  • -n, --network: Network (ic, local). Default: ic

Requirements

  • Python 3.9+
  • dfx (auto-installs if missing)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

internet_computer_wallet-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

internet_computer_wallet-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file internet_computer_wallet-0.1.1.tar.gz.

File metadata

  • Download URL: internet_computer_wallet-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for internet_computer_wallet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ace963b1004d9f2a9f81f9c1c43393a86eaf08959041e9d6372a214c3eedf7f
MD5 969af83c624033620c5129f362a75f4e
BLAKE2b-256 000db97aedc582f1a948137484a00d08fc1f766769a8710ce6282dadc5da0f98

See more details on using hashes here.

File details

Details for the file internet_computer_wallet-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for internet_computer_wallet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5367b7b40fd6b023db5b8c52299abf1887fcd285a3d6209532606ac5a1868e
MD5 ac987851ee59e198167a2bd5d6edbca6
BLAKE2b-256 084cf64c1de70b0a00f8691cdba22fcf8f78107af30d4339b0d2e26d275b1368

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page