內容簡介
以太坊 WordPress ICO MetaMask Crowdsale 外掛可以在你的 WordPress 網站上販售你的 Ethereum ERC20 或 Binance Smart Chain BEP20 ICO 代幣。這是目前唯一一個能夠直接從 WordPress 網站販售你的 Ethereum ERC20 或 Binance Smart Chain BEP20 ICO 代幣的 WP 外掛。
這是目前最佳的 WP 外掛,能夠直接從你的 WordPress 網站販售你的 Ethereum ERC20 ICO 代幣。
任何 EVM 兼容的區塊鏈,如 Binance Smart Chain (BSC) 或 Polygon (MATIC) 都可以使用。
現場演示
可以在官方網站上查看現場演示:https://ethereumico.io/
WordPress ICO MetaMask 外掛僅能接受以太幣。你可以使用 WooCommerce 的加密貨幣產品 外掛接受像美元或歐元之類的法幣或比特幣等其他加密貨幣來購買你的 ICO 代幣。
短碼
Ethereum ICO 小工具
若要一次顯示完整的 Ethereum ICO 小工具,只需在任何地方插入 [ethereum-ico] 短碼。
基本範例:
[ethereum-ico]
完整自定義範例:
[ethereum-ico buybuttontext="BUY ME!" minimum="0.1 step="0.1" maximum="100" placeholder="在此輸入以太幣數量" gaslimit="200000" tokenname="TSX" description="購買此非常實用的代幣,幫助拯救地球!" coinList="ETH,BTC"]
屬性:
buybuttontext 添加 buybuttontext="BUY ME!" 屬性以更改顯示的購買按鈕文字。
minimum 添加 minimum="0.1" 屬性以限制可接受的最小 ETH/BNB/MATIC 金額為 0.1。
step 添加 step="0.1" 屬性以限制可接受的 ETH/BNB/MATIC 更改步數為 0.1。建議將其設置為與 minimum 屬性相同的值,以提供更好的用戶體驗。
maximum 添加 maximum="100" 屬性以限制可接受的最大 ETH/BNB/MATIC 金額為 100。在某些國家,可以使用此屬性繞過法律問題。需要 專業版 才能使用此功能。提供 免費 7 天試用版。
placeholder 添加 placeholder="在此輸入以太幣數量" 屬性以更改顯示在以太幣輸入欄中的幫助字符串,以便為你的客戶提供輸入以太幣金額的位置。
gaslimit 使用 gaslimit="200000" 屬性手動設置交易中使用的燃氣限制值。此值也顯示在小工具 UI 中供用戶查看。
tokenname 添加 tokenname="TSX" 屬性以設置顯示的代幣名稱。此值將覆蓋在外掛設置頁面上輸入的相同設置。
description 添加 description="購買此非常實用的代幣,幫助拯救地球!" 屬性以設置顯示的描述部分的值。此值將覆蓋外掛設置頁面上輸入的相同設置。
外掛標籤
開發者團隊
原文外掛簡介
Ethereum WordPress ICO MetaMask Crowdsale plugin can be used to sell your Ethereum ERC20 or Binance Smart Chain BEP20 ICO tokens from your WordPress site. It is the only available WP plugin to sell your Ethereum ERC20 or Binance Smart Chain BEP20 ICO tokens directly from your WordPress site.
It is the best WP plugin available to sell your Ethereum ERC20 ICO tokens directly from your WordPress site.
Any EVM compatible blockchain like Binance Smart Chain (BSC) or Polygon (MATIC) can be used.
Live Demo
See the official site for a Live Demo: https://ethereumico.io/
The WordPress ICO MetaMask plugin can accept Ether only. You can accept fiat money like USD or EUR or cryptocurrencies like Bitcoin for your ICO tokens with the Cryptocurrency Product for WooCommerce plugin.
Shortcodes
Ethereum ICO Widget
To show the full Ethereum ICO widget at once, insert the [ethereum-ico] shortcode wherever you like.
The basic example:
[ethereum-ico]
The full customized example:
[ethereum-ico buybuttontext="BUY ME!" minimum="0.1 step="0.1" maximum="100" placeholder="Enter Ether amount here" gaslimit="200000" tokenname="TSX" description="Buy this very useful token and help save the Earth!" coinList="ETH,BTC"]
Attributes:
buybuttontext Add the buybuttontext="BUY ME!" attribute to change the buy button text shown.
minimum Add the minimum="0.1" attribute to limit the minimum amount of ETH/BNB/MATIC accepted to 0.1
step Add the step="0.1" attribute to limit the amount change step of ETH/BNB/MATIC accepted to 0.1. It is recommended to be set to the same value as the minimum attribute for better user experience.
maximum Add the maximum="100" attribute to limit the maximum amount of ETH/BNB/MATIC accepted to 100. It can be useful to workaround legal issues in some countries. The PRO version is required for this feature to work. Free 7 days Trial is available.
placeholder Add the placeholder="Enter Ether amount here" attribute to change the helper string displayed in the Ether input field for your customer to know where to input Ether amount to buy your tokens.
gaslimit Use gaslimit="200000" attribute to manually set the Gas Limit value used in the transaction composed. This value is also shown for user in the widget UI.
tokenname Add the tokenname="TSX" attribute to set the token name shown. This value will overwrite the same setting entered on the plugin settings page.
description Add the description="Buy this very useful token and help save the Earth!" attribute to set the value for the description section shown. This value will overwrite the same setting entered on the plugin settings page.
coinList Add the coinList="ETH,BTC" attribute to specify a list of coins to display with values calculated from the amount entered. This value will overwrite the same setting entered on the plugin settings page.
Gas Limit Widget
You also can use the fine grained [ethereum-ico-limit] shortcode for easier customization. The styled Gas Limit string with a corresponding limit value will be shown as a result.
The basic example:
[ethereum-ico-limit]
The full customized example:
[ethereum-ico-limit label="%s LIMIT!" gaslimit="200001"]
Attributes:
label Add the label="%s LIMIT!" attribute to change the Gas Limit text shown.
gaslimit Use gaslimit="200000" attribute to manually set the Gas Limit value used in the transaction composed. This value is also shown for user in the widget UI.
Input Widget
You also can use the fine grained [ethereum-ico-input] shortcode for easier customization. The input amount field will be shown.
The basic example:
[ethereum-ico-input]
The full customized example:
[ethereum-ico-input minimum="0.1 step="0.1" maximum="100" placeholder="Enter Ether amount here" gaslimit="200000"]
Attributes:
minimum Add the minimum="0.1" attribute to limit the minimum amount of ETH/BNB/MATIC accepted to 0.1
step Add the step="0.1" attribute to limit the amount change step of ETH/BNB/MATIC accepted to 0.1. It is recommended to be set to the same value as the minimum attribute for better user experience.
maximum Add the maximum="100" attribute to limit the maximum amount of ETH/BNB/MATIC accepted to 100. It can be useful to workaround legal issues in some countries. The PRO version is required for this feature to work. Free 7 days Trial is available.
placeholder Add the placeholder="Enter Ether amount here" attribute to change the helper string displayed in the Ether input field for your customer to know where to input Ether amount to buy your tokens.
Input Currency Widget
You also can use the fine grained [ethereum-ico-input-currency] shortcode for easier customization. Only the input currency will be shown with this shortcode.
The basic example:
[ethereum-ico-input-currency]
The full customized example:
[ethereum-ico-input-currency showIcons="true" baseCurrency="USD"]
Attributes:
showIcons Add the showIcons="true" attribute to turn on the coin icons display mode. This value will overwrite the same setting entered on the plugin settings page.
baseCurrency Use baseCurrency="USD" attribute to switch the input mode from ETH/BNB/MATIC to fiat amount input in USD. This value will overwrite the same setting entered on the plugin settings page.
Buy Button Widget
You also can use the fine grained [ethereum-ico-buy-button] shortcode for easier customization. Only the Buy button will be shown with this shortcode.
The basic example:
[ethereum-ico-buy-button]
The full customized example:
[ethereum-ico-buy-button buyButtonText="BUY ME!" tokenname="TSX"]
Attributes:
buybuttontext Add the buybuttontext="BUY ME!" attribute to change the buy button text shown.
tokenname Add the tokenname="TSX" attribute to set the token name shown. This value will overwrite the same setting entered on the plugin settings page.
Coin List Widget
You also can use the fine grained [ethereum-ico-currency-list] shortcode for easier customization. Only the list of coins with values calculated from the amount entered will be shown with this shortcode.
The basic example:
[ethereum-ico-currency-list]
The full customized example:
[ethereum-ico-currency-list showIcons="false" coinList="ETH,BTC"]
Attributes:
showIcons Add the showIcons="true" attribute to turn on the coin icons display mode. This value will overwrite the same setting entered on the plugin settings page.
coinList Add the coinList="ETH,BTC" attribute to specify a list of coins to display with values calculated from the amount entered. This value will overwrite the same setting entered on the plugin settings page.
Progress Bar Widget
To show an ICO progress bar widget insert a simple [ethereum-ico-progress] shortcode wherever you like.
The basic example:
[ethereum-ico-progress]
The full customized example:
[ethereum-ico-progress crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9" softcap="100" hardcap="1000"]
Attributes:
crowdsale Add the crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9" attribute to specify your crowdsale contract address. This value will overwrite the same setting entered on the plugin settings page.
softcap Add the softcap="100" attribute to specify soft cap value for your ICO. This value will overwrite the same setting entered on the plugin settings page.
hardcap Add the hardcap="1000" attribute to specify hard cap value for your ICO. This value will overwrite the same setting entered on the plugin settings page.
Features:
This feature uses the blockcypher.com API
You can use any of the persistent cache WP plugins to overcome its rate limits. The PRO version is required for this feature to work. Free 7 days Trial is available.
Progress Value Widget
To show an ICO progress value widget insert a simple [ethereum-ico-progress-value] shortcode wherever you like.
The basic example:
[ethereum-ico-progress-value]
The full customized example:
[ethereum-ico-progress-value crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9"]
Attributes:
crowdsale Add the crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9" attribute to specify your crowdsale contract address. This value will overwrite the same setting entered on the plugin settings page.
Features:
This feature uses the blockcypher.com API
You can use any of the persistent cache WP plugins to overcome its rate limits. The PRO version is required for this feature to work. Free 7 days Trial is available.
Progress Percent Widget
To show an ICO progress percent widget insert a simple [ethereum-ico-progress-percent] shortcode wherever you like.
The basic example:
[ethereum-ico-progress-percent]
The full customized example:
[ethereum-ico-progress-percent crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9" hardcap="1000"]
Attributes:
crowdsale Add the crowdsale="0x773F803b0393DFb7dc77e3f7a012B79CCd8A8aB9" attribute to specify your crowdsale contract address. This value will overwrite the same setting entered on the plugin settings page.
hardcap Add the hardcap="1000" attribute to specify hard cap value for your ICO. This value will overwrite the same setting entered on the plugin settings page.
Features:
This feature uses the blockcypher.com API
You can use any of the persistent cache WP plugins to overcome its rate limits. The PRO version is required for this feature to work. Free 7 days Trial is available.
Token Balance Widget
To show the user’s already purchased token balance, insert the [ethereum-ico-balance] shortcode wherever you like.
The basic example:
[ethereum-ico-balance]
The full customized example:
[ethereum-ico-balance tokenname="TSX" label="Token balance" placeholder="Input your BSC account address"]
Attributes:
tokenname Add the tokenname="TSX" attribute to set the token name shown. This value will overwrite the same setting entered on the plugin settings page.
label Add the label="Token balance" attribute to change the Balance label text shown.
placeholder Add the placeholder="Input your BSC account address" attribute to change the helper string displayed in the Ethereum address input field for your customer to know where to input their Ethereum address. It can be helpful if no MetaMask or other web3 browser is installed.
Purchases Widget
To display a table of recent token purchases by anyone, or by the current user, insert the [ethereum-ico-purchases] shortcode wherever you like.
In the last case if MetaMask is not installed or account is not unlocked, an input field is provided for user account address.
The basic example:
[ethereum-ico-purchases]
The full customized example:
[ethereum-ico-purchases tokenname="TSX" label="Token purchases" placeholder="Input your BSC account address"]
Attributes:
tokenname Add the tokenname="TSX" attribute to set the token name shown. This value will overwrite the same setting entered on the plugin settings page.
label Add the label="Token purchases" attribute to change the Balance label text shown.
placeholder Add the placeholder="Input your BSC account address" attribute to change the helper string displayed in the Ethereum address input field for your customer to know where to input their Ethereum address. It can be helpful if no MetaMask or other web3 browser is installed.
Affiliates Widget
To display a referral address field, insert the [ethereum-ico-referral] shortcode wherever you like. User can copy it and send to friends. If they buy tokens while opened this referral link, your Crowdsale contract would get a referral address in the Data field. Your Crowdsale contract should be able to work with it.
If the MetaMask is not installed or account is not unlocked, an input field is provided for user account address.
The basic example:
[ethereum-ico-referral]
The full customized example:
[ethereum-ico-referral url="https://example.com/crowdsale-ico-page" label="Referal link" placeholder="Input your BSC account address"]
Attributes:
url Add the url="https://example.com/crowdsale-ico-page" attribute to specify a particular page to refer to. The current page URL is used if this attribute not specified.
label Add the label="Referal link" attribute to change the Referal link label text shown.
placeholder Add the placeholder="Input your BSC account address" attribute to change the helper string displayed in the Ethereum address input field for your customer to know where to input their Ethereum address. It can be helpful if no MetaMask or other web3 browser is installed.
Features:
The shortcode’s default argument name produced in a link is icoreferral, like in this example – https://ethereumico.io?icoreferral=0x476Bb28Bc6D0e9De04dB5E19912C392F9a76535d, but it can be renamed with the Referral argument name setting. The PRO version is required for this feature to work. Free 7 days Trial is available.
Note: The Transaction data to send to your crowdsale contract setting will be replaced by the referral address if specified in an URL.
You can use this solidity code snippets as a base for your referral/affiliate system implementation.
Put this code to your payable token buy function:
if(msg.data.length == 20) {
address referer = bytesToAddress(bytes(msg.data));
// self-referrer check
require(referer != address(0x0), "zero-referrer");
require(referer != msg.sender, "self-referrer");
// 2% affiliation reward
uint refererTokens = tokens.mul(2).div(100);
// bonus for referrer
token.transfer(referer, refererTokens);
}
The bytesToAddress function:
function bytesToAddress(bytes source) internal pure returns(address) {
uint result;
uint mul = 1;
for(uint i; i < 20; i++) {
result = result.add(mul.mul(uint8(source[19-i])));
mul = mul.mul(256);
}
return address(result);
}
You can use the Crowdsale Contract and ERC20 Token Development Service to let us do this job for you.
Airdrop
Airdrop is a free tokens distribution to promote your project.
This plugin can be used to implement a user initiated airdrop. It means that user can request some amount of your tokens for free. Good for you, the user will be responsible for the airdrop transaction gas fees.
To configure this plugin for airdrop, just set the minimum allowed setting to zero and the Crowdsale address to your airdrop contract. Note that your airdrop contract should be able to accept zero payments and send some tokens in return.
The Transaction data setting can be used to call some specific function of your Airdrop contract.
The Online ABI Encoding Service and Ethereum Signature Database can be useful when calculating the right value for the Transaction data setting.
For example, the simple buy() function will have this signature: 0xa6f2ae3a.
Bounty
Time based bounty schedule can be used.
The ICO start date and Bounty settings are used to configure this functionality.
The JSON array of your bounty values can be specified in the Bounty setting.
Example:
[[7, 40], [7, 30], [7, 20], [7, 10], [7, 5]]
The 7 number is for days count for the corresponding bounty period. Bounty periods are calculated from the ICO start date setting.
The 40, 30, 20, 10, 5 are percents of additional tokens to be sent to buyer for free.
Your Crowdsale contract should be able to work with it. You can use the Crowdsale Contract and ERC20 Token Development Service to let us do this job for you.
Transaction data
The Transaction data setting to send to your crowdsale contract is supported
The PRO version is required for this feature. Free 7 days Trial is available.
It is an advanced feature. It can be required if your Crowdsale contract can not just accept Ether by send, but need some payable method to be called. Do not use if unsure.
The Online ABI Encoding Service and Ethereum Signature Database can be useful when calculating the right value for the Transaction data setting.
For example, the simple buy() function will have this signature: 0xa6f2ae3a.
Cache
You can use any of the [persistent cache WP plugins](https://codex.wordpress.org/Class_Reference/WP_Object_Cache#Persistent_Cache_Plugins …
