dashed-slug.net › Forums › Airdrop extension support › Exporting/importing and creating transactions
Tagged: create, new, php, transaction
- This topic has 2 replies, 2 voices, and was last updated 2 years, 3 months ago by alexg.
-
AuthorPosts
-
August 13, 2022 at 1:58 pm #12014AnonymousInactive
How can one export transactions from wordpress wallets plugin from /wp-admin/admin.php?page=wallets-menu-transactions?
August 13, 2022 at 2:46 pm #12015AnonymousInactiveI did export through Myphpadmin, but how can I add transaction to one of the clients account to Bitcoin and Altcoin Wallets Addresses
with wp-admin/admin.php?page=wallets-menu-addressesAugust 15, 2022 at 6:44 am #12018alexgKeymaster- In versions before 6.0.0
– If you want to export transactions in
.csv
form, you can go to the Wallets → Adapters screen. Below each coin adapter, there is an option to export transactions for that coin to a.csv
file. The.csv
file can be later re-imported to the plugin. The addresses and transactions are stored in the SQL tableswp_wallets_txs
andwp_wallets_adds
.– You could also export the data yourself, using
mysqldump
orphpmyadmin
. However, theaccount
column corresponds touser_ids
, and these must match theuser_ids
of the new system if you need to reimport them. When you use the built-in.csv
exporter, the user_ids are replaced with emails, and the importer changes back the emails to the new user_ids of the new system.)– If you need to export all addresses and transactions for a GDPR data request, you can use the WordPress data exporter tool (Tools → Export Personal Data). Exporting a user’s data will include also the addresses and transactions. You can inspect the code for this here: https://github.com/dashed-slug/wallets/blob/5.0.18/includes/gdpr.php
– With versions before 6.0.0, it is not really possible to add arbitrary transactions to the ledger. You would have to insert a transaction manually into the SQL tables.
– Another way would be to use the Airdrop tool, but this is cumbersome, as the airdrop tool is not built to perform transactions to one person only.
- With version 6.0.0:
– You can go to Transactions → Add New. Select the user, select
type
=move
, enter astatus
for your transaction e.g.Pending
, select the currency and click Publish. Once the transaction is published, enter the amount, change the status toDone
, and click on Update.– The data is now stored in posts, and therefore you should be able to export/import them using any tool that exports/imports WordPress posts. If you need the GDPR data exporter, it is still present. See: https://github.com/dashed-slug/wallets/blob/master/admin/gdpr.php
– If you want to add a transaction to a user using PHP code, you can look at the examples here: https://wallets-phpdoc.dashed-slug.net/wallets/classes/DSWallets-Transaction.html
Please let me know if you have any questions about this. What is your use case?
-
AuthorPosts
- You must be logged in to reply to this topic.