-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "docs: create content for Libraries Integration (#9)"
This reverts commit 103c55d.
- Loading branch information
Showing
7 changed files
with
8 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
# BlockNative XDEFI Integration | ||
|
||
First, your app need to install the core Onboard library, the injected wallets module and optionally ethers js to support browser extension and mobile wallets: | ||
|
||
```bash | ||
yarn add @web3-onboard/core @web3-onboard/injected-wallets ethers | ||
``` | ||
|
||
Then initialize in your app: | ||
|
||
```javascript | ||
import Onboard from "@web3-onboard/core"; | ||
import xdefiWalletModule from "@web3-onboard/xdefi"; | ||
|
||
// initialize the module with options | ||
const xdefiWalletSdk = xdefiWalletModule(); | ||
|
||
const onboard = Onboard({ | ||
// ... other Onboard options | ||
wallets: [ | ||
xdefiWalletSdk(), | ||
//... other wallets | ||
], | ||
}); | ||
|
||
const connectedWallets = await onboard.connectWallet(); | ||
console.log(connectedWallets); | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.