@evefrontier/dapp-kit - v0.0.1
    Preparing search index...

    Function walletSupportsSponsoredTransaction

    • Check if a wallet supports the EVE Frontier sponsored transaction feature.

      Use this to filter available wallets to only those that can execute sponsored (gasless) transactions. Currently, only EVE Vault implements this feature.

      Parameters

      • wallet: Wallet

        The wallet object from wallet-standard

      Returns boolean

      True if the wallet implements the evefrontier:sponsoredTransaction feature

      import { useWallets } from "@mysten/dapp-kit-react";
      import { walletSupportsSponsoredTransaction } from "@evefrontier/dapp-kit";

      const wallets = useWallets();
      const supportedWallets = wallets.filter(walletSupportsSponsoredTransaction);

      console.log(`${supportedWallets.length} wallets support sponsored transactions`);
      const { currentWallet } = useCurrentWallet();

      if (currentWallet && walletSupportsSponsoredTransaction(currentWallet)) {
      // Wallet supports gasless transactions
      }