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

Copy Viem chain information for sei

import { defineChain } from "viem"

const seimainnet = defineChain({
  id: 1329,
  name: 'Sei Mainnet',
  nativeCurrency: { name: 'Sei', symbol: 'SEI', decimals: 18 },
  rpcUrls: {
    default: {
      http: ['https://evm-rpc.sei-apis.com'],
    },
  },
})
4

Use TAILWIND as an Ethereum Provider

Tailwind has the same API as MetaMask.

import { connect } from "@tailwindzone/connect";
import { createWalletClient, custom, parseEther } from "viem";

const onSignClick = async () => {
  // fetches provider from `window.tailwind`
  const tailwind = await connect();
  // Use tailwind as provider, just like window.ethereum for MetaMask 
  const client = createWalletClient({
    chain: seimainnet,
    transport: custom(tailwind)
  })
  // Address of Tailwind wallet you created
  const [address] = await client.requestAddresses();
  const hash = await client.sendTransaction({
    account: address,
    to: RECEIVING_SEI_EVM_ADDRESS,
    value: parseEther('0.001')
  }) 
  // display hash in UI or console
}
5

Done!

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