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
- Pick a widget: calculators, rankings, coin prices or tools for stores.
- Set it up: coin or miner, light or dark theme, language. The preview shows exactly what your visitors will see.
- Press “Copy code”.
- Paste the code into your page where the widget should appear (see your platform below) and publish.
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
hashrate | 100 | The machine's hashrate, a number. |
unit | H, kH, MH, GH, TH, PH | Unit of the hashrate (default: the coin's usual unit). |
consumption | 3500 | Power use in watts. |
electricity | 0.06 | Electricity price in USD per kWh (default: the site's default rate). |
fee | 0 | Pool fee in %. |
currency | USD, EUR, GBP, CZK, … | Currency the results are shown in. |
machinePrice | 1599 | Price of the machine in USD: shows how many months until it pays for itself. |
showHashrateField, showConsumptionField, showFeeField | true, false | Show or hide that input. |
disabledHashrate, disabledPower, disabledElectricity, disabledFee | true, false | Lock that input so visitors can't change it (e.g. your machine's hashrate). |
dateRange | 1_month, 3_months, 6_months, 1_year, all | Chart only: the period shown first. |
showDateRanges | true, false | Chart only: show the period buttons. |
One miner: /widget/miner/{brand}/{model}
electricity | 0.06 | Starting electricity price; visitors can change it and the number of units. |
Top miners: /widget/top
kind | asic, gpu, cpu | Which devices to rank. |
algo | sha-256, scrypt, kheavyhash, … | Only one algorithm (leave out for all). |
n | 3 – 25 | How many rows. |
electricity | 0.06 | Electricity price used for the profit. |
Coin prices: /widget/ticker
coins | BTC,LTC,DOGE,KAS | Which coins, comma-separated (up to 12). |
layout | row, list | Chips in a row, or a list with more detail (set height to about 420). |
Store miner list: /widget/miner-list/{store}
electricity | 0.06 | Electricity price used for the profit. |
Verified seller badge: /badge/{store}.svg (an image, not an iframe)
style | light, dark, compact | Look of the badge. |
Every iframe widget
theme | light, dark | Colours to match your site. |
lang | en, 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