The current implementation of magic-admin-php for metadata retrieval returns the Ethereum public_address.
We are adding functionality to query wallet(s) for any chain tied to the end-user.
Example (queries all Solana wallets created for the user if applicable):
$meta = $magic->user->get_metadata_by_token_and_wallet($did_token, \MagicAdmin\Resource\Wallet::SOLANA);
Example (queries all wallets created for the user if applicable):
$meta = $magic->user->get_metadata_by_token_and_wallet($did_token, \MagicAdmin\Resource\Wallet::ANY);
Please see supported wallet types in lib/Resource/Wallet.php.
🗜 Versioning
(Check one!)
[ ] Patch: Bug Fix?
[x] Minor: New Feature?
[ ] Major: Breaking Change?
✅ Fixed Issues
[List any fixed issues here like: Fixes #XXXX]
🚨 Test instructions
./vendor/bin/phpunit tests 3.0.0 02:30:07 PM
PHPUnit 8.5.31 by Sebastian Bergmann and contributors.
📦 Pull Request
The current implementation of magic-admin-php for metadata retrieval returns the Ethereum public_address.
We are adding functionality to query wallet(s) for any chain tied to the end-user.
Example (queries all Solana wallets created for the user if applicable):
$meta = $magic->user->get_metadata_by_token_and_wallet($did_token, \MagicAdmin\Resource\Wallet::SOLANA);
Example (queries all wallets created for the user if applicable):
$meta = $magic->user->get_metadata_by_token_and_wallet($did_token, \MagicAdmin\Resource\Wallet::ANY);
Please see supported wallet types in
lib/Resource/Wallet.php
.🗜 Versioning
(Check one!)
✅ Fixed Issues
🚨 Test instructions
./vendor/bin/phpunit tests 3.0.0 02:30:07 PM PHPUnit 8.5.31 by Sebastian Bergmann and contributors.
.................................................. 50 / 50 (100%)
Time: 74 ms, Memory: 8.00 MB
OK (50 tests, 83 assertions)
⚠️ Update
CHANGELOG.md
Upcoming Changes
section ofCHANGELOG.md
with context related to this Pull Request.