Support TAILWIND in 5 minutes

1

Download TAILWIND extension

Download the extension and create an account. If needed, you can follow the onboarding guide here.

2

Download TAILWIND wallet adapter

yarn add @tailwindzone/connect
3

Use TAILWIND as an Ethereum Provider

Tailwind has the same API as MetaMask.

import { connect } from "@tailwindzone/connect";
import { ethers } from "ethers";

const onSignClick = async () => {
  const tailwind = await connect();
  // Use tailwind as ethers provider, just like window.ethereum 
  // for MetaMask, you can also use `window.tailwind` directly.
  const provider = new ethers.BrowserProvider(tailwind);
  const signer = provider.getSigner();
   const contract = new Contract(
    COUNTER_CONTRACT_ADDR,
    [
      "function increment() public",
      "function decrement() public"
    ],
    signer
  );
  const tx = await contract.increment();
  await tx.wait();
}
4

Done!

You just supported a universal USDC gas wallet. Prepare to get more users!