I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Conditional airdrop based on user balance limit

dashed-slug.net Forums Airdrop extension support Conditional airdrop based on user balance limit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10173
    alexg
    Keymaster

    Can I setup something like only people who have more then 0.001BTC/ltc/whatever can receive the airdrop?

    #10181
    alexg
    Keymaster

    Hello,

    Unfortunately no.

    However, you could write a PHP script that assigns a particular user role to people with such a condition (and removes the user role to people without the condition).

    You can run your script and then perform the airdrop to that user role.

    To determine user balances via PHP code, use the wallets_api_balance filter:

    https://wallets-phpdoc.dashed-slug.net/classes/Dashed_Slug_Wallets_PHP_API.html#method_api_balance_filter

    Hope this helps.

    Let me know if you need further advice on how to do this.

    with regards

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.