Registry / finance / grpcoin

grpcoin

JSON →
library2.1.0jsnpmunverified

Grpc Coin Node cli is a CLI tool for managing cryptocurrency transactions built with oclif. Current stable version is 2.1.0. It supports buying, selling, and watching coins, and displaying portfolio. Requires a GitHub token for permissions. Uses TypeScript and oclif framework. Differentiated as a gRPC-based coin CLI with simple commands.

npm install grpcoin
INSTALL
IMPORT
SIG · GRPCOIN
G
grpcoin
financejavascriptv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
import { run } from 'grpcoin';
const run = require('grpcoin');
ESM-only since v2. Use dynamic import if needed.
CliUx
import { CliUx } from 'grpcoin';
import CliUx from 'grpcoin';
Named export, not default.
Command
import { Command } from 'grpcoin';
const Command = require('grpcoin').Command;
TypeScript type available.

Shows how to import and run grpcoin commands programmatically and as CLI.

import { run } from 'grpcoin'; // Ensure TOKEN environment variable is set process.env.TOKEN = process.env.TOKEN ?? 'ghp_xxxxxxxxxxxx'; // Run a command programmatically await run(['buy', 'ETH', '2.5']); // Or use CLI directly: // $ npx grpcoin sell BTC 1.0
Debug
Known issues
breakingBreaking change in v2: Switched to ESM only. CommonJS require() no longer works.
fix
Use import syntax or dynamic import().
affects: >=2.0.0
deprecatedThe 'watch' command is deprecated and will be removed in v3.
fix
Use 'portfolio' command instead.
affects: 2.x
gotchaRequires a valid GitHub TOKEN environment variable. Without it, commands fail.
fix
Set TOKEN environment variable before running commands.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'grpcoin'
Using require() in ESM-only v2+
fix
Use import { run } from 'grpcoin';
Error: TOKEN environment variable not set
Missing GitHub token
fix
export TOKEN=ghp_xxxxxxxxxxxx
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies
@oclif/corerequiredCore oclif framework for CLI commands
@grpc/grpc-jsrequiredgRPC client for interacting with coin service
Agent activity
33 hits · last 30 days
node
32
Resources
grpcoin — npm install grpcoin · libregistry