/kWh Sign in

Free mining widgets / How to add a widget to your site

How to add a widget to your site

All our widgets are free. Pick one, set it up, copy one line of code and paste it into your page. It keeps itself up to date with live prices and difficulty.

In four steps

  1. Pick a widget: calculators, rankings, coin prices or tools for stores.
  2. Set it up: coin or miner, light or dark theme, language. The preview shows exactly what your visitors will see.
  3. Press “Copy code”.
  4. Paste the code into your page where the widget should appear (see your platform below) and publish.

Free mining widgets →

Where to paste the code

WordPressEdit the page, add a “Custom HTML” block, paste the code and press Update.
ShopifyOnline Store → Themes → Customize, add a “Custom Liquid” section and paste the code. In a product description, switch to the HTML view (<>) first. Then save.
WixAdd → Embed Code → Embed HTML, choose “Code”, paste and press Update. Make the box as tall as the height in the code.
SquarespaceAdd a “Code” block, paste the code, leave “Display source” off and save.
HTMLAny other site: paste the code into the page's HTML where the widget should appear.

This is what the code looks like (yours comes from the widget builder):

<iframe src="https://www.asicprofit.com/widget/BTC?hashrate=200&unit=TH&consumption=3500" width="100%" height="560" frameborder="0" loading="lazy"></iframe>

Good to know

  • The numbers update on their own: coin prices and difficulty every 15 minutes. Nothing to maintain.
  • The width adapts to the space on your page. If the bottom is cut off, raise the height="…" number in the code.
  • Pick the dark theme to match a dark site, and any of 32 languages.
  • Widgets load only when scrolled into view and set no cookies, so they don't slow your page down or need a cookie banner.
  • Please keep the “Powered by AsicProfit” line: it is what keeps the widgets free.
  • Stores: once your store is verified, your verified seller badge is waiting in your account, on your store's page.

Options reference

Each option is a parameter in the widget's address (src="…"). The builders set them for you; you can also change them by hand.

Calculator: /widget/{COIN} · Profit chart: /widget/{COIN}/graph

hashrate100The machine's hashrate, a number.
unitH, kH, MH, GH, TH, PHUnit of the hashrate (default: the coin's usual unit).
consumption3500Power use in watts.
electricity0.06Electricity price in USD per kWh (default: the site's default rate).
fee0Pool fee in %.
currencyUSD, EUR, GBP, CZK, …Currency the results are shown in.
machinePrice1599Price of the machine in USD: shows how many months until it pays for itself.
showHashrateField, showConsumptionField, showFeeFieldtrue, falseShow or hide that input.
disabledHashrate, disabledPower, disabledElectricity, disabledFeetrue, falseLock that input so visitors can't change it (e.g. your machine's hashrate).
dateRange1_month, 3_months, 6_months, 1_year, allChart only: the period shown first.
showDateRangestrue, falseChart only: show the period buttons.

One miner: /widget/miner/{brand}/{model}

electricity0.06Starting electricity price; visitors can change it and the number of units.

Top miners: /widget/top

kindasic, gpu, cpuWhich devices to rank.
algosha-256, scrypt, kheavyhash, …Only one algorithm (leave out for all).
n3 – 25How many rows.
electricity0.06Electricity price used for the profit.

Coin prices: /widget/ticker

coinsBTC,LTC,DOGE,KASWhich coins, comma-separated (up to 12).
layoutrow, listChips in a row, or a list with more detail (set height to about 420).

Store miner list: /widget/miner-list/{store}

electricity0.06Electricity price used for the profit.

Verified seller badge: /badge/{store}.svg (an image, not an iframe)

stylelight, dark, compactLook of the badge.

Every iframe widget

themelight, darkColours to match your site.
langen, de, es, fr, cs, zh-Hans-CN, …Language of the widget (32 languages).

Need help? Write to us and we'll set it up with you: info@asicprofit.com