Skip to content
DogeJS-DevPublic

About

Command-line tools for Dogecoin: batch payouts from CSV, sweeping, offline signing, multisig and PSBT. Testnet and dry run by default.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DogeJS

DogeJS CLI

Payouts, sweeps and offline signing from your terminal: pay many people from a CSV file, sweep a wallet, sign on an offline machine and run multisig.

Live demo · Documentation · All DogeJS projects

The CLI page: real output of the dogejs command in a terminal

What it does

  • Pays many people from a CSV file in one transaction, checking every line first and listing each problem with its line number.
  • Sweeps a whole wallet into one address, with the fee taken from the amount or paid on top, and says which in every summary.
  • Signs offline: build writes an unsigned file, sign signs it on an offline machine, broadcast sends it. Also multisig and PSBT (BIP174) for other wallets.
  • Keeps secrets off the command line: keys and phrases come from a file, the environment or a hidden prompt, and the tool refuses a secret typed as an argument.
  • Starts on testnet, and does a dry run unless you add --broadcast.

Try it

See real output of the tool on the live page, play the commands and build one in the command builder: https://dogejs.com/cli/

Build it and check an address, one command:

node dist/cli.mjs address check niibb2CeA7QtfWJLmXPt4V72GEJa9Yqg3e --network testnet

Screenshots

Real output of the tool on the Dogecoin test network.

Real output of the tool on the Dogecoin test network.

The command builder on the website: choose a command, fill in details, copy it.

The command builder on the website: choose a command, fill in details, copy it.

Install

Nothing is on npm yet, and the package is marked private, so build it from this repository. It needs Node 20 or later and produces one standalone file.

git clone https://github.com/DogeJS-Dev/cli.git
cd cli
npm install      # also installs core and backends from their git tags
npm run build    # writes dist/cli.mjs
node dist/cli.mjs --help

Make a testnet key, read its address, check it and sign a message. The key goes to a file and is not printed:

node dist/cli.mjs key new --out /tmp/dogejs-readme-sender.key
node dist/cli.mjs key address --key-file /tmp/dogejs-readme-sender.key
node dist/cli.mjs address check niibb2CeA7QtfWJLmXPt4V72GEJa9Yqg3e --network testnet
rm -f /tmp/dogejs-readme-sender.key

The examples on the website call the tool dogejs; replace it with node dist/cli.mjs or link the file onto your path.

How it works

The network is testnet unless you pass --network mainnet, and nothing is sent without --broadcast. Each coin's previous transaction is fetched and verified, the fee is checked, and the server must be on the network you chose. There is no default server: give your own indexer with --esplora URL, or your own Dogecoin Core node with --rpc URL. Output is plain ASCII when piped, and coloured tables and a boxed summary on a terminal. The unsigned-file format is shared with the browser tools, so a file built on a web page can be signed here.

The full reference is in docs/REFERENCE.md.

Works with

Status

Version 0.3.1, and the package is private: it is not published to npm. It has had no external security review. It has never been run against a real Dogecoin network: the tests use an in-memory mock of an Esplora indexer and local stand-in servers. Use testnet first and do not use it with funds you cannot lose.

Contributing

Bug reports, ideas and pull requests are welcome. Read the contributing guide first: small, tested, explained.

npm install
npm run build
npm run typecheck
npm test

Report a security problem privately to hello@dogejs.com, never in a public issue. See SECURITY.md.

The maintainers keep one combined development workspace for all DogeJS projects and publish each project from it as a repository of its own. An accepted pull request is applied there and appears here with the next release.

Licence

MIT, see LICENSE. Bundled third-party code, where there is any, is listed in THIRD_PARTY_LICENSES.

About

Command-line tools for Dogecoin: batch payouts from CSV, sweeping, offline signing, multisig and PSBT. Testnet and dry run by default.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages