Skip to content

Commit

Permalink
Merge pull request #711 from multiversx/fix-urls-29
Browse files Browse the repository at this point in the history
Fix URLs (web wallet provider)
  • Loading branch information
andreibancioiu committed Sep 29, 2023
2 parents 9d813a8 + caf78b2 commit eb96dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sdk-and-tools/sdk-dapp/internal-processes/guardians.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ After formatting the transaction and applying the signature provided by the Ledg
```js
import { WalletProvider } from '@multiversx/sdk-web-wallet-provider';

const walletProvider = new WalletProvider('https://www.wallet.multiversx.com/dapp/init');
const walletProvider = new WalletProvider('https://wallet.multiversx.com/dapp/init');
walletProvider.guardTransactions(transactions, {
callbackUrl: encodeURIComponent('https://my-dapp.com'),
});
```
Once transactions are back from the web wallet, they can be retrieved as follows:

```js
const signedTransactions = new WalletProvider('https://www.wallet.multiversx.com/dapp/init').getTransactionsFromWalletUrl();
const signedTransactions = new WalletProvider('https://wallet.multiversx.com/dapp/init').getTransactionsFromWalletUrl();
```

0 comments on commit eb96dab

Please sign in to comment.