Using EVM
With web3-onboard
web3-onboard is a Block Native-maintained wallet connect library useable with MetaMask and TAILWIND.
Support TAILWIND in 5 minutes
1
2
Download TAILWIND wallet adapter
yarn add @tailwindzone/connect-web3-onboard
3
Import and use TAILWIND web3-onboard adapter
import { tailwind } from "@tailwindzone/connect-web3-onboard"
const wallets = [
tailwind(),
// other wallets
]
const chains = [
{
id: 1329,
token: "Sei",
label: "Sei Mainnet",
rpcUrl: "https://evm-rpc.sei-apis.com"
}
]
const onboard = Onboard({
wallets,
chains
})
function App() {
return (<>
{/* Other components */ }
<button onClick={async () => {
// Modal should show TAILWIND wallet
await onboard.connectWallet()
}}>
Connect
</button>
</>)
}
4
Done!
You just supported a universal USDC gas wallet. Prepare to get more users!