Zyfi
  • Introduction
    • What is Zyfi?
    • Paymaster Flow
  • Gasless Program
    • Gas Grants Program
  • Integration Guide
    • Paymasters Integration
      • ERC20 Paymaster
      • Sponsored Paymaster
      • API Key management
    • API documentation
    • Intent Based
    • Paymaster Sybil Defense
    • Supported Tokens
      • Supported Tokens on ZKsync
      • Supported Tokens on Abstract
    • Case Studies
      • Case Study: SyncSwap
      • Case Study: Venus Protocol
      • Case Study: PancakeSwap
      • Case Study: Koi Finance
      • Case Study: Nodle
      • Case Study: Click
      • Case Study: Ebisu's Bay
      • Case Study: Mithraeum
      • Case Study: Gravita
      • Case Study: Router Nitro
    • UI Ideas
    • Audits
  • Permissionless Multi-signer Paymaster
    • About
    • How to set up?
    • Technical Details
    • Permissionless paymaster contract
    • Audits
  • ZFI & stZFI
    • Tokenomics
    • First Airdrop
  • Governance
    • Zyfi DAO
    • Association
  • Support
    • FAQ
    • Contract Addresses
    • Brand Assets
    • Mobile work-around
  • Socials
    • Twitter
    • Youtube
    • Discord
    • Telegram
    • Mirror
    • Dune Analytics Dashboard
Powered by GitBook
On this page
  • Intent Adjacent Function
  • How to Use checkNFT
  1. Integration Guide

Intent Based

The whole Zyfi API is a Solver in the Intent landscape.

PreviousAPI Key managementNextPaymaster Sybil Defense

Last updated 7 months ago

The Intent narrative in blockchain refers to a user's specific goal that is submitted to a service and then executed by a 'solver,' which can be a person, an API, or another protocol to achieve the desired outcome.

At Zyfi, we've developed a complete Intent Solver, which consists of Zyfi's APIs associated with Zyfi's paymaster contract. This innovation addresses the user's intent to have gasless transactions sponsored by a third party, such as an NFT collection, a DApp, or a foundation.

Intent Adjacent Function

Zyfi goes a step further by introducing a specific Intent Adjacent function to the API solver. Instead of requiring a DApp to pay gas fees for the end user, a third party like a brand, foundation, or NFT collection can sponsor the gas without needing direct API integration.

This parameter, called CheckNFT, is part of the API call of the . DApps that use associated NFT contract addresses can switch this parameter from false to true during the API call. This allows DApps to sponsor gas for holders of any Zyfi NFT partner, with the NFT collection consent.

How to Use checkNFT

As a Dapp, you just need to switch the checkNFT parameter from false to true and ensure that the sponsoring NFT collection is registered beforehand with an associated Zyfi's Vault balance.

const payload = {
   chainId: 324,
   feeTokenAddress: // Not needed if your sponsor 100% of the gas
   sponsorshipRatio: 100
   checkNFT: true, // All Zyfi's NFT partners vault could now sponsor gas for their holders on your Dapp
   replayLimit:
     from: "0x...",
     to: "0x...",
     data: "0x.."
   }
};

By simply activating this parameter, Zyfi enables gasless transactions for specific holders through a straightforward parameter switch.

When the checkNFT parameter is switched to true, all of Zyfi's NFT partner vaults could sponsor gas for their holders on your Dapp. This offers a flexible solution for Dapps to integrate; for third parties to sponsor, and an amazing solution for NFT holders who enjoy gas-free transactions.

sponsored paymaster
Zyfi's intent adjecent function