Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Magic provider #180

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: update README
  • Loading branch information
drichar committed Jun 5, 2024
commit 583ae87ed8f6297d592d911ecbed50bdc78708a1
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Some wallets require additional packages to be installed. The following table li
| Pera Wallet | `@perawallet/connect-beta` |
| WalletConnect | `@walletconnect/modal`, `@walletconnect/sign-client` |
| Lute Wallet | `lute-connect` |
| Magic.link | `magic-sdk`, `@magic-ext/algorand` |

## Configuration

Expand All @@ -82,6 +83,10 @@ const walletManager = new WalletManager({
{
id: WalletId.LUTE,
options: { siteName: '<YOUR_SITE_NAME>' }
},
{
id: WalletId.MAGIC,
options: { apiKey: '<YOUR_API_KEY>' }
}
],
network: NetworkId.TESTNET
Expand All @@ -96,6 +101,8 @@ To initialize wallets with default options, pass the wallet ID using the `Wallet

> **Note:** Pera and WalletConnect's `projectId` option is required. You can obtain a project ID by registering your application at https://cloud.walletconnect.com/

> **Note:** Magic's required `apiKey` can be obtained by signing up at https://dashboard.magic.link/signup

#### `network` (optional)

The `network` property is used to set the network for the application. Using the `NetworkId` emum, it can be set to either `BETANET`, `TESTNET`, `MAINNET`, or `LOCALNET`. If unset, the default is `TESTNET`.
Expand Down
Loading