This demo should serve as an example of how a web wallet can be wrapped to provide one of the Signer interfaces required by the Wormhole SDK.
See the MetaMaskSigner for an example of a SignAndSendSigner using Metamask
See the PhantomSigner for an example of a SignAndSendSigner using Phantom
git clone https://github.com/barnjamin/ezui.git
cd ezui
npm install
npm run dev-
Connect metamask/phantom when prompted
Note: This example uses Testnet by default, update the const to change this
-
Click
Start Transferand sign the transaction when prompted -
Wait for the transfer to be mined and the VAA to be available
-
Click
Complete Transferand approve the network change then sign the transaction when prompted
Add more web wallet wrapper options Allow modification of transfer parameters Add other routes (CCTP/Gateway/...)