Title: User Coin Address
Last modified: October 30, 2019

---

# User Coin Address

 *  Resolved [graemeconradie](https://wordpress.org/support/users/graemeconradie/)
 * (@graemeconradie)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/user-coin-address/)
 * Hi Alex,
 * I want to get the logged-in user’s coin address for a variable to pass to a form.
 * I am on a page, with a coin variable (BTC / ETH / BCH), and I want to use that
   variable to get the users address for that coin.
 * Like:
 * $deposit_address = apply_filters( ‘wallets_api_deposit_address’, ”, array(
    ‘
   symbol’ => $atts[‘symbol’], ‘user_id’ => $atts[‘user_id’], ) );
 * $deposit_address
 * How do I get this done ?
 * Graeme

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [graemeconradie](https://wordpress.org/support/users/graemeconradie/)
 * (@graemeconradie)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/user-coin-address/#post-12080448)
 * My apologies Alex,
 * I found the API documentation.
 * PHP API — Collection of WordPress actions and filters that can be used to interact
   with the wallets via PHP code. The PHP API is documented using phpDoc. The JSON
   API utilizes this PHP API.
 * $deposit_address = apply_filters( ‘wallets_api_deposit_address’, ”, array( ‘symbol’
   => ‘BTC’ ) );`
 * $deposit_address = apply_filters( ‘wallets_api_deposit_address’, ”, array(
    ‘
   symbol’ => ‘LTC’, ‘user_id’ => 2, ‘check_capabilities’ => true, ‘force_new’ =
   > true, ) );
 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/user-coin-address/#post-12082590)
 * Hello,
 * Glad you found it. For reference, the documentation is here: [https://wallets-phpdoc.dashed-slug.net/classes/Dashed_Slug_Wallets_PHP_API.html#method_api_deposit_address_filter](https://wallets-phpdoc.dashed-slug.net/classes/Dashed_Slug_Wallets_PHP_API.html#method_api_deposit_address_filter)
 * Note that the `force_new` argument will give you a brand new address and it will
   assign that address to that user and it will also mark all the other addresses
   for that user and coin as “old”.
 * If you simply wish to get the deposit address, do not include `force_new` in 
   your call.
 * with regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘User Coin Address’ is closed to new replies.

 * ![](https://ps.w.org/wallets/assets/icon-256x256.png?rev=1570088)
 * [Bitcoin and Altcoin Wallets](https://wordpress.org/plugins/wallets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wallets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wallets/)
 * [Active Topics](https://wordpress.org/support/plugin/wallets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wallets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wallets/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 2 replies
 * 2 participants
 * Last reply from: [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/user-coin-address/#post-12082590)
 * Status: resolved