aleph-im / aleph-account

Aleph.im's Account management dApp
https://account.aleph.im/
2 stars 3 forks source link

Solana Integration: Connect and sign with phantom #42

Closed leirbag95 closed 2 years ago

leirbag95 commented 2 years ago

It is now possible to connect and sign message to solana network through the Phantom wallet.

The interaction with solana is done directly from a public rpc https://solana-api.projectserum.com

The address of the SPL used to calculate the balance of an account is the following:

3UCMiSnkcnkPE1pgQ5ggPCBv6dXgVUy16TmMUe1WpG9x

To know more about solana/web3js

https://solana-labs.github.io/solana-web3.js/

To know more about connection and interaction with Phantom:

https://docs.phantom.app/

User path is the same, to connect you will now have the possibility to select Phantom on the solana network.

connect

Your Aleph balance will be displayed as follows balance of aleph

To sign messages, same scenario as with Metamask or another wallet, a Phantom popup will appear and will ask you to sign the message sign message

BjrInt commented 2 years ago

Somehow version 0.5.1 was published 6 months ago (https://www.npmjs.com/package/aleph-js/v/0.5.1), even though repository was unchanged. This lead to an unexpected error with NPM.

Can you update your version to 0.5.3 ?

leirbag95 commented 2 years ago

Somehow version 0.5.1 was published 6 months ago (https://www.npmjs.com/package/aleph-js/v/0.5.1), even though repository was unchanged. This lead to an unexpected error with NPM.

Can you update your version to 0.5.3 ?

Updated ✅

hoh commented 2 years ago

Uploaded here: https://ipfs-2.aleph.im/ipfs/QmbPD6w34cUSjQtA6Kh4c99HjosjJ4DT6c1DioBpphHMCR/#/