Everything the payer needs is in the link itself, so there is nothing to sign up for and nothing to host.
dogejs.com/link/app/
Create
Create a link in seconds
Paste your address, add an amount and what it is for. Your link and its QR code appear straight away.
Ask for DOGE, or a price in dollars, euros and more
Leave the amount blank and the payer chooses
Your keys never go near the page
Your customer
A clear page on any phone
The link opens a simple page: who is asking, what it is for, how much, and the full address with a QR code.
Pay with the DogeJS wallet, or scan with any Dogecoin wallet
A price in dollars is turned into DOGE when the page opens and fixed while they pay
The address is always shown in full so it can be checked
Receipt
A green check and a receipt
When the payment is seen, the page turns green and shows a receipt the payer can print or keep.
Amount, date and transaction id on one page
On the main network the check uses a free public service
Your own wallet always shows the money too
Invoices
Invoice numbers and due dates
Under Advanced you can add an invoice number, your name or shop name, and a due date.
Shown on the page as text, never as code
Your name is marked as not verified, so nobody is misled
Great for a freelancer or a small shop
Share
Share it anywhere
Copy the link into a text, an email or a chat, or show the QR code on your phone or in print.
Links are short enough for chat apps
A link damaged on its way is refused, not guessed at
My links keeps the ones you made, in this browser only
How it works
Three steps, no sign-up
Paste your address
It starts with D. Don't have one yet? Any Dogecoin wallet shows it under Receive.
Add an amount and a note
Both are optional. Set a due date or invoice number if you want one.
Send the link
Copy it, share it, or show the QR code. Your customer pays from their wallet.
Questions
Good to know
What does it cost?
Nothing. There is no account and no fee. The payer pays the normal network fee from their wallet and the full amount reaches your address.
Do I need a website?
No. A payment link is a web address you can send in a text, an email or a chat. There is nothing for you to host.
How do I know I was paid?
Your wallet shows it. If the page can reach a server it also shows the green check, but that runs in the payer's browser and is a convenience, not proof. See Get started for how to confirm payments on your side.
Can I change a link after I sent it?
No. The link is the request. Make a new one and send that. "My links" in the builder lists the ones you made in this browser.
Can I send a link in dollars?
Yes: choose a currency under Advanced. The payer sees the DOGE amount at the rate when they open the page, fixed while they pay.
Is the name on the page checked?
No. It says "Name not verified". Only the address is exact, and it is always shown in full.
What if a chat app shortens or breaks the link?
A broken link is refused with a message, not guessed at. Links are under 1,800 characters so they usually survive. If one is damaged, ask for it again.
The link format, what keeps it safe, and how to make links from code.
How it works
The whole request lives in the link. The address, amount, note and settings are packed into the part of the URL after #. A browser never sends that part to a web server, so DogeJS never receives it: there is no account, no database and nothing to lose. The pay page at /p/ is a static page that reads the fragment, checks it and draws the payment.
Keys never touch the page. Only your public address is in the link. If you paste a private key or recovery phrase into a field, the builder clears it.
Nothing is stored for you. "My links" lists links you copied or shared, in this browser only (and says so when the browser blocks storage).
Anyone who can edit a link can change its address. The pay page always shows the full address so the payer can check it, and a link damaged on its way is refused (see Security).
The link format
Format
https://dogejs.com/p/#1.<base64url( JSON array as UTF-8 + 4-byte CRC-32 )>
Everything before the dot is the version (currently 1; any other value is refused). After the dot is base64url text (letters, digits, - and _, no padding) of the UTF-8 JSON array followed by a 4-byte CRC-32 of that JSON, most significant byte first. A fragment longer than 1,800 characters is refused, which keeps links within what chat apps and QR codes handle.
Fields of a payment link
The JSON is an array of exactly ten strings, in this order:
#
Field
Value
Limit
0
network
"m" main network or "t" test network
1
address
A Base58Check address that belongs to that network. Always shown in full on the pay page.
2
kind
"" payer chooses, "d" DOGE, "f" a fiat price
3
amount
Plain decimal text. DOGE: 0.01 to 1,000,000,000, up to 8 decimals. Fiat: above 0 up to 100,000,000.00, 2 decimals. Empty when kind is empty.
4
currency
USD, CAD, EUR, GBP or AUD when kind is fiat, otherwise empty
5
note
What the payment is for
120 characters
6
invoice
An invoice or order reference
24 characters
7
name
Who is asking. Shown as "Name not verified".
60 characters
8
due
A date as YYYY-MM-DD, or empty. Shown as Due, with "past due" when it has passed. It does not stop anyone paying.
9
server
An Esplora-style server for payment checking: https:// (http:// only for localhost), no credentials, query or fragment; or empty
200 characters
Text is cleaned when it is made and again when it is read: control, zero-width and direction-changing characters are removed, < and > are dropped, and line breaks become spaces. Limits count characters (code points), not bytes. Decoding returns { ok: false, reason } for a wrong shape, network, address, amount, text, date or server, never a half-valid link.
Worked example, step by step
Take the link made in example 1 below. Its fragment is:
Split at the dot. Version 1; the rest is the payload, 166 characters.
Undo base64url. That gives 124 bytes: 120 bytes of JSON and, at the end, the 4 check bytes 1065d696.
Check them. CRC-32 of the 120 JSON bytes is 1065d696, the same as the check bytes, so nothing was changed on the way.
Read the JSON as UTF-8 text:
JSON
["t","nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt","d","25","","Invoice for logo design","INV-0042","Studio Wow","2026-12-31",""]
Read the fields. Network t (test), the address, kind d with amount 25 (25 DOGE, which is 2,500,000,000 koinu), no currency, the note, invoice INV-0042, name Studio Wow, due 2026-12-31, no server.
The last two steps are what example 3 does with no package at all. Its real output for this fragment:
Output (run with Node 22)
version 1 | check bytes 1065d696 | computed 1065d696
[
't',
'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt',
'd',
'25',
'',
'Invoice for logo design',
'INV-0042',
'Studio Wow',
'2026-12-31',
''
]
Security
Text only. The pay page puts every field on the page as plain text, never as HTML, so a link cannot inject markup or script. Cleaning also removes hidden and direction-changing characters, which stops lookalike tricks in the note or name.
"Name not verified". The name and note are whatever the link maker typed. The page says so next to the name. The one thing the payer should check is the address, which is shown in full.
The checksum is not a signature. CRC-32 catches a link that was cut short or garbled, not one that someone edited on purpose and re-encoded. Share links over a channel you trust.
Not indexed./p/ (and /t/) carry noindex, and the fragment is never sent to a server, so search engines and our logs never see the request. The link can still end up in your own chat or browser history.
Secrets refused. The builder clears anything that looks like a private key, an extended key, a 64-character hex key or a recovery phrase.
Payment checking is optional. With a server in the link, or on the main network the free public service (BlockCypher, read every 45 seconds, 50 transactions each time; the limit is shared with other DogeJS pages) or a community server, the page can watch for the payment. A test-network link without a server cannot confirm and says so. In every case the payer sees the payment in their own wallet, and the page labels the "I have paid: show my receipt" button as not checked.
Amounts in dollars, euros and more
With kind f the link stores integer minor units (cents) and a currency, never a float. When the pay page opens it asks CoinGecko for the DOGE price (at most once a minute), turns cents into koinu with fiatToKoinu (half up), and fixes that DOGE amount while the payer pays. The page shows the rate, its source and time; "Update price" fetches a new one. If the price cannot be fetched it says so and offers to retry instead of guessing. A link in DOGE has no rate and never needs the network.
Create links from code
The helper library is @dogejs/links. It is not on npm yet: build it from the repository (see Self-hosting) and import it. Money is bigint koinu. These four programs were run with Node 22 against the built package; the output is what they printed.
1. Encode and decode a payment link
The same fragment is used in the worked example above.
JavaScript
import { encodePayLink, decodePayLink } from '@dogejs/links';
const link = {
network: 'testnet',
address: 'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt',
amount: { kind: 'doge', koinu: 2_500_000_000n }, // 25 DOGE, always integer koinu
note: 'Invoice for logo design',
invoice: 'INV-0042',
name: 'Studio Wow',
due: '2026-12-31',
server: '',
};
const fragment = encodePayLink(link);
console.log('https://dogejs.com/p/#' + fragment);
const back = decodePayLink(fragment);
console.log(back.ok, back.link.amount, back.link.note);
Output
Output (run with Node 22)
https://dogejs.com/p/#1.WyJ0IiwiblVDQUdHZ1pFUE4xUXlrbm1RZTFvQWt1ODE3YlFBRktGdCIsImQiLCIyNSIsIiIsIkludm9pY2UgZm9yIGxvZ28gZGVzaWduIiwiSU5WLTAwNDIiLCJTdHVkaW8gV293IiwiMjAyNi0xMi0zMSIsIiJdEGXWlg
true { kind: 'doge', koinu: 2500000000n } Invoice for logo design
2. Damaged links are refused, and a tip page
One changed character, a cut-off link and an unknown version each come back as ok: false with a reason. encodeTipPage and decodeTipPage do the same for tip jars (see Tip jars).
JavaScript
import { encodePayLink, decodePayLink, encodeTipPage, decodeTipPage } from '@dogejs/links';
const address = 'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt';
const fragment = encodePayLink({ network: 'testnet', address, amount: { kind: 'doge', koinu: 2_500_000_000n }, note: 'Logo design', invoice: '', name: '', due: '', server: '' });
// A link damaged on its way through a chat app is refused, not guessed at.
const flipped = fragment.slice(0, 30) + (fragment[30] === 'A' ? 'B' : 'A') + fragment.slice(31);
console.log('one character changed:', decodePayLink(flipped));
console.log('cut short: ', decodePayLink(fragment.slice(0, -5)));
console.log('unknown version: ', decodePayLink('2.' + fragment.slice(2)));
// A tip page is another list in the same format.
const tip = encodeTipPage({
network: 'testnet', address, title: 'Buy me a coffee', message: 'Thank you!',
goal: 100_000_000_000n, // 1,000 DOGE
chips: [500_000_000n, 1_000_000_000n, 5_000_000_000n], // 5, 10 and 50 DOGE
color: 'gold', initial: 'S', since: 0, server: '',
});
console.log('https://dogejs.com/t/#' + tip);
const page = decodeTipPage(tip);
console.log(page.ok, page.page.title, page.page.goal, page.page.chips);
Output
Output (run with Node 22)
one character changed: { ok: false, reason: 'damaged' }
cut short: { ok: false, reason: 'damaged' }
unknown version: { ok: false, reason: 'unknown version' }
https://dogejs.com/t/#1.WyJ0IiwiblVDQUdHZ1pFUE4xUXlrbm1RZTFvQWt1ODE3YlFBRktGdCIsIkJ1eSBtZSBhIGNvZmZlZSIsIlRoYW5rIHlvdSEiLCIxMDAwIiwiNSIsIjEwIiwiNTAiLCJnb2xkIiwiUyIsMCwiIl2hu4OC
true Buy me a coffee 100000000000n [ 500000000n, 1000000000n, 5000000000n ]
3. Decode a link by hand, no package
Run it as node decode.mjs 1.WyJ0Ij.... It needs Node 22.2 or later for zlib.crc32; any CRC-32 (IEEE) function does the same job. It checks the checksum and prints the array; it does not apply the address, amount or text rules that the package does.
JavaScript
// Decode a payment link by hand, with no package. Run: node decode.mjs 1.WyJ0Ij...
// Needs Node 22.2 or later for zlib.crc32; any CRC-32 (IEEE) function does the same job.
const fragment = process.argv[2];
const [version, payload] = fragment.split('.');
const bytes = Buffer.from(payload, 'base64url');
const body = bytes.subarray(0, -4);
const check = bytes.readUInt32BE(bytes.length - 4);
// CRC-32 (the same one zlib uses)
import zlib from 'node:zlib';
console.log('version', version, '| check bytes', check.toString(16), '| computed', zlib.crc32(body).toString(16));
console.log(JSON.parse(body.toString('utf8')));
Output
Output (run with Node 22)
version 1 | check bytes 1065d696 | computed 1065d696
[
't',
'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt',
'd',
'25',
'',
'Invoice for logo design',
'INV-0042',
'Studio Wow',
'2026-12-31',
''
]
4. A price in dollars, and the checks the builder runs
Rates are integers scaled by 108 (priceE8 is USD per DOGE times 100,000,000).
JavaScript
import { encodePayLink, decodePayLink, fiatToKoinu, parseDogeAmount, parseFiatAmount } from '@dogejs/links';
const address = 'nUCAGGgZEPN1QyknmQe1oAku817bQAFKFt';
// A price in US dollars: the link stores integer cents, never a floating-point number.
const fragment = encodePayLink({
network: 'testnet', address,
amount: { kind: 'fiat', currency: 'USD', minor: 1250n }, // 12.50 USD
note: 'Two flat whites', invoice: '', name: '', due: '', server: '',
});
const { link } = decodePayLink(fragment);
console.log('stored:', link.amount);
// The pay page asks for a rate when it opens, then fixes the DOGE amount. priceE8 = USD per DOGE x 1e8.
const priceE8 = 8_000_000n; // 0.08 USD per DOGE
console.log('koinu at 0.08 USD:', fiatToKoinu(link.amount.minor, priceE8), '(156.25 DOGE)');
// The same checks the builder runs on what you type:
console.log(parseDogeAmount('0.001'));
console.log(parseDogeAmount('12.5'));
console.log(parseFiatAmount('0'));
console.log(parseFiatAmount('100000000.01'));
// An address from the other network is refused when a link is decoded.
const mainnet = 'DH5yaieqoZN36fDVciNyRueRGvGLR3mr7L';
console.log(decodePayLink(encodePayLink({ network: 'testnet', address: mainnet, amount: { kind: 'none' }, note: '', invoice: '', name: '', due: '', server: '' })));
Output
Output (run with Node 22)
stored: { kind: 'fiat', currency: 'USD', minor: 1250n }
koinu at 0.08 USD: 15625000000n (156.25 DOGE)
{ ok: false, reason: 'The smallest amount is 0.01 DOGE.' }
{ ok: true, koinu: 1250000000n }
{ ok: false, reason: 'The amount must be above zero.' }
{ ok: false, reason: 'That amount is too large.' }
{ ok: false, reason: 'address' }
Reference
Export
What it does
encodePayLink(link), decodePayLink(fragment)
Make a fragment; read one into { ok: true, link } or { ok: false, reason }. Reasons: empty, too long, malformed, unknown version, damaged, wrong shape, network, address, amount, text, due, server.
encodeTipPage, decodeTipPage
The same for tip jars (twelve fields).
parseDogeAmount, parseFiatAmount, fiatToKoinu
Amount checks and cents to koinu at a rate, half up.
cleanText, LIMITS, MAX_FRAGMENT
Text cleaning, length limits and the 1,800-character cap.
findServer, tipsTo, sumTips
Find a server for a network and total tips to an address.
git clone https://github.com/DogeJS-Dev/payment-links.git
cd payment-links
npm install # also installs core and backends from their git tags
npm run build # dist/link.js, p.js, tip.js, t.js and the helper dist/index.mjs
The HTML and CSS of the four pages (link/app, p, tip/app, t) are in the website repository under site/. Copy each folder to your host and put the matching dist/*.js next to its index.html.
The builders write links that start with https://dogejs.com/p/# and https://dogejs.com/t/#: the constant SITE in src/common.ts. Change it to your own origin before you build, or the links you make will open the DogeJS pages instead of yours. The pay pages read any fragment, so links made elsewhere still work on your copy.