Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorAgnin committed Feb 11, 2024
1 parent 75addd9 commit 4fd6c8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To use the Fuse Flutter SDK in your project, you must create an instance of the

Whether you aim to fetch or create a smart wallet, relay an ERC20/FUSE transfer, relay an ERC721 transfer, relay a generic transaction, swap tokens, or stake tokens, the `FuseSDK` class has you covered. Additionally, the SDK provides data features that allow you to get the list of tokens owned by an address, get token details, and get a smart wallet's token balance.

The following code initializes the Fuse SDK and creates an instance of the `FuseSDK` class. The `publicApiKey` variable should be set to your own API key.
The following code initializes the Fuse SDK and creates an instance of the `FuseSDK` class. The `apiKey` variable should be set to your own API key.

```dart
import 'package:fuse_wallet_sdk/fuse_wallet_sdk.dart';
Expand Down
4 changes: 2 additions & 2 deletions docs/developers/fuse-box/flutter-sdk/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ import 'package:fuse/fuse_wallet_sdk.dart';
void main() async {
// Create a project: https://chargeweb3.com
final String publicApiKey = 'YOUR_PUBLIC_API_KEY';
final String apiKey = 'YOUR_PUBLIC_API_KEY';
print('Enter privateKey:');
String privateKey =
Expand All @@ -209,7 +209,7 @@ void main() async {
print('address: ${credentials.address.hexEip55}');
// Initialize FuseWalletSDK
final FuseWalletSDK fuseWalletSDK = FuseWalletSDK(publicApiKey);
final FuseWalletSDK fuseWalletSDK = FuseWalletSDK(apiKey);
final DC<Exception, String> authRes = await fuseWalletSDK.authenticate(
credentials,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Using the SDK requires the use of the `EthersJS` library. We require the `Ethers
npm install ethers
```

The following code initializes the Fuse SDK and creates an instance of the `FuseSDK` class. The `publicApiKey` variable should be set to your own API key.
The following code initializes the Fuse SDK and creates an instance of the `FuseSDK` class. The `apiKey` variable should be set to your own API key.

Replace `API_KEY` with your actual API key obtained from the Fuse [Developer](https://developers.fuse.io/) Dashboard.
To enable `Paymaster`, set it as the third argument in the `init()` method. `withPaymaster: true` . It is default `false` where the argument is not provided.
Expand Down

0 comments on commit 4fd6c8b

Please sign in to comment.