Wagmi

Integral to is the ability for applications to interact seamlessly with blockchain networks. WAGMI is an SDK designed to facilitate this interaction, providing robust methods to connect with and operate on blockchain networks. This documentation aims to offer insights into the core functionalities of WAGMI. Check out our Wagmi Overview section.


Use Cases

  1. Decentralized Applications (dApps): Integrate with blockchain networks for operations such as transactions, smart contract interaction, and more.
  2. Web Platforms: Offer users the capability to interact with blockchain functionalities without leaving the platform interface.
  3. Blockchain-Based Games: Enable in-game purchases, character upgrades, and other functionalities via blockchain transactions.
  4. Financial Platforms: Allow users to conduct financial transactions, check balances, and more, directly from a user-friendly interface.

Basic Functionality

Connecting with Wagmi

Before executing blockchain-based operations, establishing a connection with the desired network via WAGMI is essential.

Metamask (Legacy)

  1. configureChains()

    • Description: Sets up the desired blockchain networks/chains that the application will interact with.
    • Parameters:
      • chainId: The desired blockchain's unique chain ID.
    • Returns: A confirmation of the chain setup or an error message.
  2. connectWallet()

    • Description: Initiates a connection to the user's Metamask wallet.
    • Parameters: None
    • Returns: Confirmation of successful wallet connection or an error message.
  3. getProvider()

    • Description: Retrieves the current blockchain provider that the user's Metamask is connected to.
    • Parameters: None
    • Returns: The active blockchain provider information.
  4. getSigner()

    • Description: Fetches the signer, which is used to sign transactions or messages using the user's private key without revealing it.
    • Parameters: None
    • Returns: The signer object for the connected wallet.