1
- # Embedded wallet React helpers
1
+ # Embedded Wallet React helpers
2
2
3
3
Collection of React hooks to help with embedded wallet implementation.
4
4
@@ -7,7 +7,7 @@ Collection of React hooks to help with embedded wallet implementation.
7
7
Initialize wallet SDK and UI.
8
8
9
9
``` tsx
10
- import { WalletWidget } from ' @embedded-wallet/ react' ;
10
+ import { WalletWidget } from ' @apillon/wallet- react' ;
11
11
12
12
return <WalletWidget ...props />;
13
13
```
@@ -19,7 +19,7 @@ return <WalletWidget ...props />;
19
19
Get the initialized instance of embedded wallet.
20
20
21
21
``` ts
22
- import { useWallet } from ' @embedded-wallet/ react' ;
22
+ import { useWallet } from ' @apillon/wallet- react' ;
23
23
24
24
const { wallet } = useWallet ();
25
25
@@ -31,7 +31,7 @@ console.log(await wallet.userExists('johndoe'));
31
31
Get current connected account info.
32
32
33
33
``` ts
34
- import { useAccount } from ' @embedded-wallet/ react' ;
34
+ import { useAccount } from ' @apillon/wallet- react' ;
35
35
36
36
const { username, address, getBalance } = useAccount ();
37
37
```
@@ -41,7 +41,7 @@ const { username, address, getBalance } = useAccount();
41
41
Helper methods to interact with contracts.
42
42
43
43
``` ts
44
- import { useContract } from ' @embedded-wallet/ react' ;
44
+ import { useContract } from ' @apillon/wallet- react' ;
45
45
46
46
const { read, write } = useContract ({
47
47
abi: ERC20Abi ,
0 commit comments