wagmi_flutter_web 0.0.1-dev.1 copy "wagmi_flutter_web: ^0.0.1-dev.1" to clipboard
wagmi_flutter_web: ^0.0.1-dev.1 copied to clipboard

Wagmi JS SDK wrapper for Dart Web

Wagmi SDK wrapper for Flutter Web #

Features #

Exposes Wagmi sdk to your Flutter web project.

Wagmi provides developers with intuitive building blocks to build their Ethereum apps.

Getting started #

In pubspec.yaml file, add the wagmi_flutter_web dependency :

dependencies:
  wagmi_flutter_web:
copied to clipboard

Usage #

import 'package:wagmi_flutter_web/wagmi.dart' as wagmi;

// Load and initialize Wagmi lib.
await wagmi.init();

// Initializes Web3Modal
wagmi.Web3Modal.init(
    'f642e3f39ba3e375f8f714f18354faa4',
    [wagmi.Chain.mainnet, wagmi.Chain.sepolia],
    true,
    true,
    wagmi.Web3ModalMetadata(
        name: 'Web3Modal',
        description: 'Web3Modal Example',
        url: 'https://web3modal.com',
        icons: ['https://avatars.githubusercontent.com/u/37784886'],
    ),
);

// Opens the Wallet connection modal.
wagmi.Web3Modal.open();
copied to clipboard
2
likes
0
points
43
downloads

Publisher

verified publisherarchethic.net

Weekly Downloads

2024.06.23 - 2025.01.05

Wagmi JS SDK wrapper for Dart Web

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on wagmi_flutter_web