# Uniswap v3 NFT

## Intro

Uniswap has launched LP as NFTs in v3 implementation.

"NFTs will appear as unique on-chain generated art based on the properties of your position"

## base64 function

The unique feature that the Uniswap v3 NFT contract has is the token data shortener using the base64 encoding function scheme.

This function reduces the SVG data into a shorter version by encoding tokenURI data.\
The Base64 encoding function saves gas costs and prevents blockchain state bloat by reducing the size (characters) of token metadata (SVG URL).\
This contract uses the base64 encoding function to display metadata URL instead of raw URL or UTF-8 URL format.

## Further reading

* Contract: <https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/libraries/NFTDescriptor.sol#L65>
* Introduction of Uniswap v3: <https://uniswap.org/blog/launch-uniswap-v3/>
* base64 function explained: <https://en.wikipedia.org/wiki/Base64>
* base64 text encode: <https://codebeautify.org/base64-encode>


---

# 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://nft-standards.gitbook.io/nft-standards-wiki/custom-nft-platforms-add-ons/uniswap-v3-nft.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.
