跳到内容

Bitcoin Address

v0.8.1

Abdussamad Abdurrazzaq · 2014年12月17日 上架

This plugin generates and displays a unique bitcoin address each time someone wants to send you bitcoin.

正在使用
10+
评分
暂无
累计下载
6,610
最近更新
2016年10月9日
需要 WordPress 3.9.2+已测试到 4.6.30

截图

Address Display
Address Display
Plugin settings
Plugin settings

Note: This plugin requires PHP 5.3 or newer.

Reusing bitcoin addresses is bad for your privacy. With this plugin you can enter a shortcode – [bitcoin_address] – in your blog posts or pages that displays a button which users can use to get a fresh bitcoin address. Address requests are logged and you can browse that log from the WordPress admin area.

The plugin works by generating deterministic addresses using an Electrum Master Public Key. You need to create a new Electrum wallet and then paste its Master Public Key into the plugin’s settings page. It will then generate addresses from that wallet sequentially.

Creating Electrum Wallet

You will need an Electrum Master Public Key which is also known as an extended public key (xpub). The plugin only works with Electrum MPKs but does support both Electrum version 1.x and 2.x MPKs. It only supports standard wallets i.e. it does not support multisig wallets or 2FA wallets.

  • Run Electrum. It will open your default wallet.
  • To create a new wallet select File menu > New/Restore.
  • Enter a name for your new wallet file.
  • Follow the on-screen prompts to create a new wallet.
  • To see the Master Public Key of your new wallet go to Wallet menu > Master Public Keys.
  • It is recommended that you increase the gap limit of your wallet from the default 20. The gap limit is the number of unused addresses Electrum keeps track of. To increase the gap limit open your wallet and go to the console tab. Type in wallet.change_gap_limit(50). Close Electrum and reopen your wallet to see new addresses listed on the receive tab.
  • TIP: To open your new wallet in future run Electrum and select File menu > Open. Then navigate to your wallet file and select it to open it.
  • TIP: You can create a shortcut to your new wallet using the -w switch i.e. electrum -w c:\path\to\wallet_file. To learn the location of your wallet file see this FAQ.

Configuring plugin

To access the plugin configuration page you need to login to the WordPress admin page. Then click on Settings > Bitcoin Address from the left sidebar. There you can paste the Electrum Master Public Key.

Shortcode

The plugin shortcode is [bitcoin_address]. The following options exist:

  • Display type: You can specify a type of “field” or “link”. Field type will display a text field containing the address. Link will display a bitcoin address link. For example: [bitcoin address type=’field’] will display a text field. The default type is field.
  • QR Code: You can enable or disable the display of a QR Code containing the address. Ex: [bitcoin_address type=’link’ qr_code=’enabled’] will display an address as a link and above that link will be the address QR code. By default QR code display is disabled.

Address Log

An address log is maintained that lists the time and date an address was handed out, the ip address of the user who requested it, and the address itself. You can see the address log in WordPress admin > Settings > Bitcoin Address Log

Credits

The plugin makes use of the following opensource scripts:

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums