DogeJS / All apps / Wallet

DogeJS WalletFree for iPhone, Android and computers

Your Dogecoin, in your hands

A wallet that installs from the web. Set it up with a PIN, receive with a QR code, scan to pay. Your keys never leave your device.

Wallet home: a balance of 382.49774 DOGE, Receive and Send buttons, and recent payments.
The Receive screen: a QR code, your test-network address and a yellow Copy address button.

A complete wallet, made simple

Everything you need to keep, send and receive Dogecoin, with plain words on every screen.

Choose a PIN: four of six dots filled and a number keypad. Below: Use a password instead (stronger).

Set up

Ready in a minute with a PIN

Tap Create a new wallet and choose a 6-digit PIN. That is it: your wallet is made on this device, and you can back it up when you are ready.

  • Prefer a password? Choose one of 12 characters or more
  • Restore an existing wallet from 12 to 24 words
  • Locks itself after a few minutes without use
The Receive screen: a QR code, the address and a Copy address button, with an optional amount to request.

Receive

Get paid with a QR code

Show the QR code or copy your address. Add an amount and the code asks for exactly that. New payments appear on Home as they arrive.

  • Copy the address or share the code with one tap
  • Share a payment link with the amount filled in
  • Receive even before you connect a server
The camera scanning a payment code for Corner Coffee, 12.50 DOGE.
Check every line: the recipient gets 50 DOGE, the network fee, change back to you, and a green Second fee check passed.

Send

Scan to pay, then check every line

Point the camera at a payment code and the address and amount fill in. Before anything is sent, you see exactly what leaves your wallet, including the fee.

  • The fee is checked twice, on your device
  • Send everything, or take the fee from the amount
  • Each payment is followed to six confirmations
Pay many: five rows of address, amount and note, each address with a green check.
Pay many review: you pay 71.25 DOGE to 5 people in one transaction, with the fee and the balance after.

Pay many

Pay many people at once

Paste a list or open a spreadsheet file and pay up to 500 people in one transaction: wages, tips, refunds. One review screen, one fee.

  • Every address is checked as you type
  • A note on each row, so you know who got what
  • Works from a CSV file
A payment request in the wallet pop-up: the site, 12.50 DOGE for 2 flat whites, the full address, the fee, the total and a green Fee checked.
A sign-in request in the wallet pop-up: the site, the address that will be shared, a message from the site, and Sign in and Cancel buttons.

On websites

Sign in and pay from a pop-up

Sites with a Pay with DOGE or Sign in with Doge button open the wallet in a small window. You see the site, the amount and the full address, and nothing happens until you press Pay or Sign in.

  • A site can only ask, never take
  • Signing in proves the address is yours and moves no coins
  • On the main network, paying asks for your PIN again
The More screen: tools (Pay many, Sign a message, Transaction file, Watch-only export) and settings (Network, Servers, Confirmation checks, PIN and password, Auto-lock).

Your keys

Your keys stay on your device

Your wallet is made in your browser and stored there, locked with your PIN or password. Payments are signed on your device; only the finished, signed payment is sent out. No one else, including DogeJS, ever has your keys.

  • Stored encrypted, never in plain text
  • A server can report and pass on payments, but never move your coins
  • Keep the keys on a Ledger instead, if you have one (beta)
Home with a Back up your wallet card: write down your recovery phrase; a lost or reset device means lost coins. Back up now. Below, a balance of 100 DOGE.

Back up

Back up on paper, once

Write your 24-word recovery phrase on paper, or print it, then type four of the words back to prove you have it. With those words you can restore your wallet on any device.

  • Home reminds you until it is done
  • On the main network your address appears only after the backup
  • Keep it on paper: never in email, chat, photos or the cloud
Home with a warning: Your servers disagree. Sending is blocked until they agree again. Receiving still works.

Connect

Free to connect, or bring your own server

On the main network, one tap connects the free public service. Or pick a community server, or enter your own. The wallet checks every answer it gets.

  • Each server must prove it is on the right network
  • Several servers are compared; sending stops if they disagree
  • Confirmations are checked against block headers on your device, where the server provides them
Wallet home in dark mode, with the balance and recent activity.

Installs like an app

On your home screen, in a few taps

Add the wallet to your home screen and it opens full screen from its own icon. It follows your light or dark setting and unlocks even without a connection.

  • No app store, no account
  • Updates only after you accept them, with the version shown
  • Works on phones, tablets and computers

How it keeps you safe

  • Only you hold the keysThey are made on your device and locked with your PIN or password. Nobody else ever has them.
  • You see everything before it is sentWho gets what, the fee and what is left. Nothing leaves until you confirm.
  • It double-checks the serversServers can report, never spend. The wallet compares them and checks their answers itself.

How it works

  1. Create it

    Open the wallet and choose a PIN. It starts on the Dogecoin test network, so you can try everything first.

  2. Back it up

    Write the recovery phrase on paper. Then switch to the main network in More, Network.

  3. Receive and send

    Connect the free service with one tap, then share your QR code or scan to pay.

Install it

The wallet installs from the web. It then opens full screen from its own icon, like any other app.

The DogeJS Wallet app iconWalletOpen the walletThen follow the steps for your device.
  1. ‹

    Open Wallet in Safari and tap Share. On newer iPhones it is under the ··· button.

  2. Copy
    Add to Home Screen
    Add Bookmark

    Scroll the list and choose Add to Home Screen.

  3. Wallet

    Tap Add, then open Wallet from its icon.

  1. Open Wallet in Chrome and tap the ⋮ menu.

  2. Tap Install app (on some phones Add to Home screen), then Install.

  3. Wallet

    Open Wallet from your home screen or app drawer.

  1. Open Wallet in Safari and tap Share at the top right.

  2. Copy
    Add to Home Screen
    Add Bookmark

    Choose Add to Home Screen.

  3. Wallet

    Tap Add. Wallet is now on your Home Screen: open it from there.

On a computer, Chrome and Edge show an install button in the address bar.

Questions

Is it free?

Yes. The wallet is free and open source, with no account. When you send, you pay the normal Dogecoin network fee, and the wallet shows it before you confirm.

Who holds my coins?

You do. The keys are made and used only on your device, encrypted with your PIN or password. No server can move your coins, and DogeJS runs no server.

What if I forget my PIN or lose my phone?

Restore with your 24-word recovery phrase on any device. Without the phrase nobody can recover the wallet, so keep it on paper somewhere safe and never type it into a website.

PIN or password?

A 6-digit PIN is quick and keeps people who use the device out. Someone who copies the browser's storage can try every PIN on their own hardware, so a password of 12 or more characters protects better.

Which servers does it use?

Ones you choose: the free public service on the main network, a community server, or your own. It checks that each serves the right network, and if two disagree it stops sending until they agree.

Can a website take money from the wallet?

No. A site can only ask: the wallet shows the site, the amount and the full address, and nothing is sent until you press Pay (and on the main network enter your PIN or password again).

Does it work offline?

Once installed it unlocks offline and shows your addresses. Balances, history and sending need a connected server.

Your wallet is one tap away

Free, open source, and your keys stay with you.

For developers

Documentation

How the keys are kept, what servers can and cannot do, how sites ask the wallet to sign in or pay, and how to check the build.

How it works

  1. Keys on your device

    Your recovery phrase is made in the browser. Only encrypted keys are stored, in your browser's own storage.

  2. Your server reports

    The indexer you chose tells the wallet about your addresses and coins. Several servers are cross-checked.

  3. Signed here

    Payments are built, checked and signed on your device. Only the signed transaction goes to your server.

  4. Checked here

    Confirmations are checked against the block headers and their proof of work, on your device.

How your keys are stored

The wallet stores the seed in your browser's IndexedDB, encrypted with a key made from your PIN or password. Until you back up, the recovery phrase is kept inside the same encryption so it can be shown again after your PIN; once the four-word check passes, it is removed and only the encrypted seed stays. Nothing is stored unencrypted.

PartHow
Recovery phrase24 words (BIP39), made with the browser's secure random number generator. Restoring accepts 12 to 24 words.
Key from a PIN6 digits; PBKDF2-SHA-256, 11,000,000 iterations (about two seconds per try on a computer), random 16-byte salt. After 5 wrong PINs the app waits 1 minute, then 5 minutes, 30 minutes and 2 hours.
Key from a passwordAt least 12 characters; PBKDF2-SHA-256, 600,000 iterations, random 16-byte salt.
EncryptionAES-256-GCM, random 12-byte nonce; any change to the stored data (including the stored parameters) is detected.
FormatA versioned JSON envelope (dogejs-wallet-vault, version 1) that stores the iteration count, so later versions can change parameters safely.
AccountOne BIP44 account, m/44'/3'/0' on mainnet and m/44'/1'/0' on testnet.
While unlockedOnly the account key is held in memory; locking clears it.
Auto-lockAfter 5 minutes without activity (choices from 1 to 60 minutes) and when the app is hidden.

A PIN keeps other people who use the device out. Someone who copies the browser's storage can try all million PINs on their own hardware, where the app's waits do not apply, so a password protects better.

The app loads only its own files, with integrity hashes, under a strict Content Security Policy. A service worker keeps the version you installed; an update installs only when you accept it, after the app shows its version and build hash.

Servers: what they can and cannot do

A light wallet does not download the blockchain. It asks an indexer. DogeJS runs no server and the wallet never picks one for you. It offers the free community servers run by volunteers at QED, checks each one, and uses one only when you tap "Use this server". They promise no uptime. You can also enter the URL of one you run or trust (up to five per network). Only https:// is accepted, plus http:// for a server on your own computer.

On mainnet the wallet also offers the free public service: BlockCypher's keyless Dogecoin API, with Blockchair as a second opinion on the latest block and on the coins you spend. It allows about 100 requests an hour from your connection, so the wallet checks fewer addresses at a time, refreshes less often, and pauses (with the time it resumes) when the allowance runs out. It sends no block headers, so confirmations show as reported by the service. The service sees the addresses you look up. There is no free public service for the test network.

A server canA server cannot
Report your balance and historyMove your coins: your keys stay on your device
Pass on your signed paymentsChange a payment or its fee after you review it
Hide a payment or go quietServe another network: its genesis block must match first
See which addresses you look up, and your IP addressDisagree with your other servers unnoticed: sending stops until they agree

Verified confirmations

When your server says a payment is confirmed, the wallet asks it for a merkle proof and the block headers that follow, then checks them on your device: the payment is in the block, the block is the one the server named, and the next blocks link to it with real proof of work. Each payment carries a badge: Reported, Checking, Verified, Not verified or Check failed. The transaction screen shows exactly what was checked and what was not. A payment whose proof does not hold up is left out of your balance and its coins cannot be spent. On testnet, where easy blocks are allowed, the badge reads "Verified (weak)".

Sign in and pay from another site

A website can ask the wallet for exactly two things, in a small pop-up window: sign in (sign a DogeJS sign-in challenge with one receive address) and pay (send an amount to an address). The wallet never signs any other text or transaction for a site, tells the site nothing before you decide, and only your tap on Sign in or Pay does anything. The messages are plain postMessage objects, version v: 1. The full documents are SIGNIN-REQUEST.md and PAY-REQUEST.md in the wallet repository; this is the summary.

Flow
site (opener)                                 wallet (pop-up)
window.open(walletUrl)  -- nothing in the URL -->  loads, starts locked
                        <-- { type: "dogejs-wallet:ready", v: 1 }
checks event.source and event.origin
postMessage(request, walletOrigin) ------------->  checks event.source === window.opener
                                                   validates; unlock; approval sheet
                        <-- result, posted to the request's origin
verifies the answer itself                         green check, closes itself
MessageDirectionContent
dogejs-wallet:readywallet to site{ type, v } and nothing else. Sent again if the wallet page reloads; send the same request again.
dogejs-signin:requestsite to wallet{ type, v, id, challenge }. id is 1 to 64 of A-Z a-z 0-9 - _. challenge holds the fields of a sign-in message without the address: domain, uri, statement?, network, nonce, issuedAt, expirationTime, notBefore?, requestId?, resources?. No other keys.
dogejs-signin:resultwallet to site{ type, v, id, ok: true, address, signature } or { ok: false, error: "rejected" | "refused" | "busy", reason? }.
dogejs-pay:requestsite to wallet{ type, v, id, payment: { address, amount, network, label? } }. amount is koinu (1 DOGE = 100,000,000) as a decimal string; network is "mainnet" or "testnet".
dogejs-pay:resultwallet to site{ type, v, id, ok: true, txid } or { ok: false, error, reason? } with error rejected, refused, busy, failed (the network refused it; nothing moved) or unclear (the broadcast may or may not have gone out).

What the wallet checks

  • The request must come from window.opener. The requesting origin is taken from the browser's MessageEvent.origin, never from the message, and must be https: (or http: on localhost).
  • Sign-in: the challenge domain must equal the requesting host exactly (refusal domain_mismatch), uri must be on that origin, an expiry must be present, in the future and at most 24 hours away, and the request at most 4,096 characters. The wallet writes the standard challenge text itself, with the address, and signs exactly what it shows.
  • Pay: the address must be valid for the named network, the amount a string of digits of at least 1,000,000 koinu (0.01 DOGE), the label at most 100 plain characters, and the whole request at most 1,024 characters. Unknown keys are refused. It then runs the normal send flow with every guard, and on mainnet asks for your PIN or password again.
  • If the request names a different network from the wallet's, the site is not told: it just gets rejected when you close the window, so it learns nothing about your wallet. The same goes for not enough funds or no server.
  • One request per window. A second, different one gets busy. Both approval buttons arm 0.7 seconds after the sheet appears, so a click meant for the site cannot land on them.

Do not trust the answer blindly. A sign-in site rebuilds the text from its own fields and the returned address and runs verifySignIn; a pay site should confirm the payment on its own side. A Cross-Origin-Opener-Policy: same-origin header on either page cuts window.opener and stops the protocol.

A minimal opener, tested

This is a complete helper for the site side: it opens the wallet, waits for ready, sends the request to the wallet's origin only, accepts answers only from that window and origin, and resolves with the result. It does not use @dogejs/signin or @dogejs/pay; those packages do the same with more checks.

JavaScript
// Ask the DogeJS Wallet for something and wait for its answer. One request per pop-up.
function askWallet(walletUrl, request) {
  return new Promise((resolve, reject) => {
    const walletOrigin = new URL(walletUrl, location.href).origin;
    const popup = window.open(walletUrl, '_blank', 'popup,width=420,height=720');   // no "noopener": the wallet answers through window.opener
    if (!popup) return reject(new Error('The browser blocked the wallet window.'));
    const finish = (fn, value) => { clearInterval(watch); removeEventListener('message', onMessage); fn(value); };
    const watch = setInterval(() => { if (popup.closed) finish(reject, new Error('The wallet window was closed.')); }, 500);
    function onMessage(e) {
      if (e.source !== popup || e.origin !== walletOrigin) return;          // only that window, only that origin
      const m = e.data;
      if (!m || typeof m !== 'object') return;
      if (m.type === 'dogejs-wallet:ready') popup.postMessage(request, walletOrigin);   // the wallet may send "ready" again after a reload: send the same request again
      else if ((m.type === 'dogejs-signin:result' || m.type === 'dogejs-pay:result') && m.id === request.id) finish(resolve, m);
    }
    addEventListener('message', onMessage);
  });
}

const id = () => Array.from(crypto.getRandomValues(new Uint8Array(12)), (b) => b.toString(16).padStart(2, '0')).join('');
const stamp = (ms) => new Date(ms).toISOString().replace(/\.\d{3}Z$/, 'Z');

function signInRequest(extra = {}) {
  const now = Date.now();
  return {
    type: 'dogejs-signin:request', v: 1, id: id(),
    challenge: { domain: location.host, uri: location.origin + '/', statement: 'Sign in to the test page.', network: 'testnet',
                 nonce: id() + id(), issuedAt: stamp(now), expirationTime: stamp(now + 5 * 60_000), ...extra },
  };
}
const payRequest = (payment) => ({ type: 'dogejs-pay:request', v: 1, id: id(), payment });

Use it like this (the wallet must be on the same network as network; use 'mainnet' for a real wallet):

JavaScript
const wallet = 'https://dogejs.com/wallet/app/';

// Pay: 25 DOGE to your address. The amount is koinu as a string.
const paid = await askWallet(wallet, payRequest({ address: 'YOUR_ADDRESS', amount: '2500000000', network: 'mainnet', label: 'Order 1042' }));
if (paid.ok) console.log('sent, txid', paid.txid);       // still confirm it on your side
else console.log(paid.error, paid.reason);

// Sign in: then verify the answer yourself (here with the DogeSignin build of @dogejs/signin)
const request = signInRequest({ network: 'mainnet' });
const answer = await askWallet(wallet, request);
if (answer.ok) {
  const c = request.challenge;
  const message = DogeSignin.createSignInMessage({ address: answer.address, ...c });
  const verified = DogeSignin.verifySignIn({ message, signature: answer.signature,
    expected: { domain: location.host, nonce: c.nonce, network: 'mainnet', uri: location.origin + '/' } });
  console.log(verified.ok, verified.address);
}

This code was run against the wallet app built from this source, served on one port, with the test page on another origin (localhost:9072 opening the wallet at localhost:9071). What the test page logged:

Test page output (testnet wallet)
domain not matching the page      -> { ok: false, error: 'refused', reason: 'domain_mismatch' }
pay with amount "5" (no koinu)    -> { ok: false, error: 'refused', reason: 'bad_amount' }
sign in, wallet created and approved
                                  -> { ok: true, address: 'nXE4nm4j...', signature: 'IFeq0yxf...' }
verifySignIn on that answer       -> { ok: true, network: 'testnet', address: 'nXE4nm4j...' }

The test did not make a real payment: the pay path was tested for a refusal only, on a testnet wallet that was newly created and empty. See Sign in with Doge and the Pay button for the ready-made elements that use these messages.

Pay many: the CSV format

More, then Pay many (or "Pay many at once" on Send) pays up to 500 people in one transaction. Paste rows (address, amount, note per line; commas or tabs, so cells copied from a spreadsheet work), open a CSV file, or type rows in the table. "Download a template" gives the header. The file format is the same as the command-line tool's (dogejs payout --csv).

CSV
address,amount,label
niy5wcKshDbWN6Zntg9YVmyY2FDV9PPy7i,250,"Ana, kitchen"
ns6V7vTjQvbxjm8513NSjsfm38kYbbfQaP,180.5,Ben
  • Header address,amount or address,amount,label (the wallet also reads note). Pasted rows may leave the header out; a file starts with it.
  • RFC 4180 quoting; LF or CRLF line ends; an optional byte order mark. Amounts are plain decimal DOGE strings, up to 8 decimals, read to integer koinu.
  • A file is read exactly as the command-line tool reads it. The wallet is stricter in two places: at most 500 payments, and notes with invisible or direction-changing characters are refused.
  • Before anything is built: every address must be valid for the wallet's network, each amount at least 0.01 DOGE, the total within what you can spend, repeated addresses flagged (allowed only after you tick that they are intended), and your own addresses flagged. Errors are listed per row; nothing goes on while a row is invalid.
  • The review table shows every payment as it will be paid, the totals, the exact fee, a note that recipients see each other on the chain, a required tick and, on mainnet, your PIN or password again. Payment i is output i; change is the last output. The signed transaction is decoded and compared with the reviewed list before it is broadcast.
  • After sending you can download a receipt (address,amount,note,txid,date) or save the list as a template. The wallet keeps no list of payees, and notes are never stored.
  • Larger lists: split the file, or use dogejs payout, which splits and resumes. Not available for a Ledger account or a watch-only wallet.

Hardware wallet (Ledger)

The hardware option keeps the keys on a Ledger device instead of in the browser. It is off by default: turn it on under More, Hardware wallet, and connect it on a device that has no other wallet. It needs WebHID, which Chrome and Edge on a computer provide, and the Ledger Dogecoin app on the device. The wallet reads the public key for m/44'/3'/0' from the device and builds and checks every payment as usual, then the Ledger shows the outputs and fee and signs it, and the wallet checks the signed bytes against what you reviewed before sending. Receive can show the address on the device. Pay many, sign-in and payment requests from other sites, and Sign a message are not available with a Ledger account. The Ledger has no testnet coin type, so on testnet it uses coin type 3 and shows addresses in their mainnet form, which the wallet displays next to them.

Verify the build

Every build writes build-info.json and SHA256SUMS next to the app. build-info.json lists each file with its size and SHA-256, and a build hash: the SHA-256 of the sha256sum-format lines (<sha256> <path>\n) of every listed file in path order. sw.js, SHA256SUMS and build-info.json are not in that list; the service worker embeds the build hash, so any changed app file gives a changed worker. The build is reproducible: no timestamps, so the same sources give the same hash. The About screen shows the hash the running service worker reports, which is informative only, since running code can lie about itself.

Shell
cd wallet/app && sha256sum -c SHA256SUMS      # every file: OK
python3 -m http.server 8000 --bind 127.0.0.1
# then open http://127.0.0.1:8000/   (https or localhost is needed; file:// does not work)

Without sha256sum, or to see the rule, this Node program does the same check and recomputes the build hash. It was run on the files of this site's wallet:

JavaScript
// Check a copy of the wallet against its own build-info.json, then recompute the build hash.
// Run: node verify.mjs path/to/wallet/app
import { readFileSync } from 'node:fs';
import { createHash } from 'node:crypto';
import { join } from 'node:path';

const dir = process.argv[2];
const sha256 = (buf) => createHash('sha256').update(buf).digest('hex');
const info = JSON.parse(readFileSync(join(dir, 'build-info.json'), 'utf8'));

let bad = 0;
const lines = [];
for (const [path, meta] of Object.entries(info.files).sort(([a], [b]) => (a < b ? -1 : 1))) {   // sorted by path
  const got = sha256(readFileSync(join(dir, path)));
  if (got !== meta.sha256) { bad++; console.log('MISMATCH', path); }
  lines.push(`${meta.sha256}  ${path}\n`);
}
const buildHash = sha256(Buffer.from(lines.join('')));   // the sha256sum-format lines, in path order

console.log(info.name, info.version);
console.log('files checked:', Object.keys(info.files).length, '| mismatches:', bad);
console.log('buildHash in build-info.json:', info.buildHash);
console.log('buildHash recomputed:        ', buildHash, buildHash === info.buildHash ? '(same)' : '(DIFFERENT)');

Output

Output (node verify.mjs wallet/app)
@dogejs/wallet 0.10.0
files checked: 14 | mismatches: 0
buildHash in build-info.json: 83b00db8b020d323296202d61e0d0ba4e18483adad101fa2fcde2d72b75282de
buildHash recomputed:         83b00db8b020d323296202d61e0d0ba4e18483adad101fa2fcde2d72b75282de (same)

To check that the published app comes from the source, build the source yourself and compare the build hash:

Shell
git clone https://github.com/DogeJS-Dev/wallet.git
cd wallet
npm install
npm run build        # writes dist/ and prints the build hash
cat dist/build-info.json | grep buildHash

A rebuild of this wallet's source (version 0.10.0) in a clean folder gave the build hash shown above. A hash match shows the files are the ones the source produces; it does not defend against a compromised host that serves a different service worker the first time you visit, which is why the hash is also published in the repository.

Self-hosting

Source: github.com/DogeJS-Dev/wallet. The built app is static files (index.html, one hashed script and style sheet, a verification worker, the service worker, icons, build-info.json, SHA256SUMS), so any static host with HTTPS works.

Shell
git clone https://github.com/DogeJS-Dev/wallet.git
cd wallet
npm install   # core, backends, ledger and light node come from their git tags
npm run build # dist/ is the whole app
# to write into a checkout of the website repository instead:
# SITE_DIR=../website npm run build:site

Serve dist/ over HTTPS (or from localhost) at the path you like. A copy has its own browser storage: restore your wallet there with your recovery phrase. If you host it on the same origin as a site that uses the sign-in or pay requests, remember that the site then shares the wallet's storage, so the protection between them is the browser's same-origin policy, not the protocol; put the wallet on its own origin to keep the protocol's separation.