import { inAppWallet } from "thirdweb/wallets";
import { claimTo } from "thirdweb/extensions/erc1155";
import { ConnectButton, TransactionButton } from "thirdweb/react";
import { baseSepolia } from "thirdweb/chains";
const wallets = [
inAppWallet({
// turn on gas sponsorship for in-app wallets
// Can use EIP4337 or EIP7702 on supported chains
executionMode: {
mode: "EIP4337",
smartAccount: { chain: baseSepolia, sponsorGas: true },
},
}),
];
function App() {
return (
<>
<ConnectButton client={client} wallets={wallets} />
{/* signless, sponsored transactions */}
<TransactionButton
transaction={() =>
claimTo({
contract,
to: "0x123...",
tokenId: 0n,
quantity: 1n,
})
}
>
Mint
</TransactionButton>
</>
);
}