Title: Bitcoin Address
Author: Abdussamad Abdurrazzaq
Published: <strong>2014 年 12 月 17 日</strong>
Last modified: 2016 年 10 月 8 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/bitcoin-address.svg)

# Bitcoin Address

 作者：[Abdussamad Abdurrazzaq](https://profiles.wordpress.org/abdussamad/)

[下载](https://downloads.wordpress.org/plugin/bitcoin-address.zip)

 * [详情](https://cn.wordpress.org/plugins/bitcoin-address/#description)
 * [评价](https://cn.wordpress.org/plugins/bitcoin-address/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/bitcoin-address/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/bitcoin-address/#developers)

 [支持](https://wordpress.org/support/plugin/bitcoin-address/)

## 描述

**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](https://electrum.org) 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](http://docs.electrum.org/en/latest/faq.html#where-is-my-wallet-file-located).

#### 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:

 * Code borrowed from the [bitcoin payments for woocommerce plugin](https://wordpress.org/plugins/bitcoin-payments-for-woocommerce/)
   by [BitcoinWay](http://www.bitcoinway.com) including parts of [PHP-ECC](https://github.com/phpecc/phpecc)
   by [Matyas Danter](http://www.matyasdanter.com/).
 * [PHP QR Code encoder](http://phpqrcode.sourceforge.net/)

## 屏幕截图

[⌊Address Display⌉⌊Address Display⌉[

Address Display

[⌊Plugin settings⌉⌊Plugin settings⌉[

Plugin settings

## 安装

 1. Unzip the package, and upload `bitcoin-address` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit Settings > Bitcoin Address and enter your Electrum Master Public Key there.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Bitcoin Address」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Abdussamad Abdurrazzaq ](https://profiles.wordpress.org/abdussamad/)

「Bitcoin Address」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/bitcoin-address/contributors)
为本插件所做的贡献。

[帮助将「Bitcoin Address」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/bitcoin-address)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/bitcoin-address/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/bitcoin-address/)，或通过[RSS](https://plugins.trac.wordpress.org/log/bitcoin-address/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/bitcoin-address/)。

## 更新日志

#### 0.8.0

 * Now supports Electrum version 2.x MPKs

#### 0.7.8

 * readme.txt updated with instructions on how to raise the gap limit.

#### 0.7.7

 * First publicly released version

## 额外信息

 *  版本 **0.8.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.9.2 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [English (US)](https://wordpress.org/plugins/bitcoin-address/) 和 [Japanese](https://ja.wordpress.org/plugins/bitcoin-address/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/bitcoin-address)
 * 标签
 * [bitcoin](https://cn.wordpress.org/plugins/tags/bitcoin/)[electrum](https://cn.wordpress.org/plugins/tags/electrum/)
 *  [高级视图](https://cn.wordpress.org/plugins/bitcoin-address/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/bitcoin-address/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/bitcoin-address/reviews/)

## 贡献者

 *   [ Abdussamad Abdurrazzaq ](https://profiles.wordpress.org/abdussamad/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/bitcoin-address/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://bitcoinspakistan.com/bitcoin-address/)