|
1 |
| -# Connect SDK |
| 1 | +# Connect Viem SDK |
2 | 2 |
|
3 | 3 | Cometh Connect Viem SDK allows developers to onboard their users with a seedless, gasless experience familiar to Web2 using Biometrics and web2 logins.
|
4 | 4 |
|
@@ -45,9 +45,9 @@ You can also connect to a previously created wallet. You'll have to provide the
|
45 | 45 | await wallet.connect(walletAddress)
|
46 | 46 | ```
|
47 | 47 |
|
48 |
| -## Instanciate a Connect Viem Client |
| 48 | +## Instanciate a Connect viem Client |
49 | 49 |
|
50 |
| -After creating (or reconnecting) to a connect wallet, you can now create a connectViemClient or connectViemAccount: |
| 50 | +After creating (or reconnecting) to a connect wallet, you can now create a connectViemClient: |
51 | 51 |
|
52 | 52 | ```javascript
|
53 | 53 | import {
|
@@ -101,13 +101,6 @@ This function relays the transaction data to the target address. The transaction
|
101 | 101 | ### Send Batch transactions
|
102 | 102 |
|
103 | 103 | ```javascript
|
104 |
| -import { encodeFunctionData } from 'viem' |
105 |
| - |
106 |
| -const txCallData = encodeFunctionData({ |
107 |
| - abi: CONTRACT_ABI, |
108 |
| - functionName: CONTRACT_METHOD |
109 |
| -}) |
110 |
| - |
111 | 104 | const txBatch = [
|
112 | 105 | { to: DESTINATION, value: VALUE, data: txCallData },
|
113 | 106 | { to: DESTINATION, value: VALUE, data: txCallData }
|
@@ -164,13 +157,6 @@ Sign the given message using the EOA, owner of the smart wallet.
|
164 | 157 | ### Sign Transaction
|
165 | 158 |
|
166 | 159 | ```javascript
|
167 |
| -import { encodeFunctionData } from 'viem' |
168 |
| - |
169 |
| -const txCallData = encodeFunctionData({ |
170 |
| - abi: CONTRACT_ABI, |
171 |
| - functionName: CONTRACT_METHOD |
172 |
| -}) |
173 |
| - |
174 | 160 | const tx = { to: DESTINATION, value: VALUE, data: txCallData }
|
175 | 161 |
|
176 | 162 | const signature = await connectViemAccount.signTransaction(tx)
|
|
0 commit comments