DogeJS / All tools / Browser utilities / Units and fees

Units and fees

Convert DOGE and koinu exactly, and calculate a fee with Dogecoin Core’s default numbers.

Runs entirely in your browser.

Convert

DOGE
koinu

DOGE takes up to 8 decimal places. Koinu is a whole number. 1 DOGE = 100,000,000 koinu.

Fee calculator

Typical sizes from DogeJS Core’s estimator:

Dogecoin Core’s numbers

Dogecoin Core’s defaults, in the version DogeJS Core was written against, with the place in Core’s source where each comes from. The table is generated from DogeJS Core’s constants. Node operators can change all of these.

Dogecoin Core fee and policy defaults with source references
WhatConstantValueSource in Dogecoin Core

The fee for a size is rate × bytes / 1000, rounded down, at least 1 koinu. Since Core 1.14.5 there is no rounding up to whole kilobytes. Each output below the soft dust limit makes a default node require 0.01 DOGE more fee.

Koinu is the smallest unit, 0.00000001 DOGE. All arithmetic here uses whole numbers, because floating point cannot store amounts like 0.1 exactly.

About this tool

Converts between DOGE and koinu and works out a fee from a size and a rate, using Dogecoin Core’s default numbers.

Formats accepted

  • DOGE with up to 8 decimal places, or whole koinu.
  • A size in bytes and a rate in DOGE per kB.

Checks it performs

  • All arithmetic is on whole numbers (bigint), so there is no rounding error.
  • The fee is rate × bytes / 1000, rounded down, at least 1 koinu.
  • The policy table shows each Core constant with where it comes from in Core’s source.

Privacy

It runs in your browser. Nothing you enter is sent anywhere, and the page’s Content Security Policy blocks connections it does not need. There is no field for a private key or recovery phrase.

Self-hosting

The tools are static files. Save the tools folder and open it from any web server, or build it yourself from github.com/DogeJS-Dev/browser-utilities with npm install and npm run build.