# Intent Based

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 [sponsored paymaster](https://docs.zyfi.org/integration-guide/paymasters-integration/sponsored-paymaster). 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.

```typescript
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.

<figure><img src="https://3129085131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffg3zJM5ChpTTMyke744p%2Fuploads%2FYRguiA8xRaj0arU1uRKN%2FZyfi%20Intent%20Adjacent%20Function.jpg?alt=media&#x26;token=26fee126-081c-4421-ab50-f3ff0fc6a1ca" alt=""><figcaption><p>Zyfi's intent adjecent function</p></figcaption></figure>

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zyfi.org/integration-guide/intent-based.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
