Support TAILWIND in 5 minutes
1
2
Download TAILWIND wallet adapter
3
Use TAILWIND as an Ethereum Provider
Tailwind has the same API as MetaMask.
4
Done!
You just supported a universal USDC gas wallet.
Prepare to get more users!
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
EthersJS is an Ethereum client connect library which can be used with MetaMask or TAILWIND.
Download TAILWIND wallet adapter
yarn add @tailwindzone/connect
Use TAILWIND as an Ethereum Provider
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();
}
Done!