> For the complete documentation index, see [llms.txt](https://docs.eitherway.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eitherway.ai/documentation/web3/smart-contracts-and-nfts.md).

# Smart Contracts & NFTs

#### **Contract Templates**

| Template       | Standard | Use Case               |
| -------------- | -------- | ---------------------- |
| Basic Token    | ERC-20   | Fungible tokens        |
| NFT Collection | ERC-721  | Unique collectibles    |
| Multi-Token    | ERC-1155 | Gaming assets          |
| Escrow         | Custom   | Trustless transactions |
| SPL Token      | Solana   | Solana fungible tokens |
| Metaplex NFT   | Solana   | Solana NFTs            |

***

#### **IPFS Integration**

NFT metadata and assets are stored on IPFS via Pinata:

```
POST /api/ipfs/upload-metadata
{
"name": "My NFT",
"description": "A unique piece", "image": "ipfs://Qm...",
"attributes": [...]
}
```

**Response:**

```
{
"success": true, "cid": "Qm...",
"uri": "ipfs://Qm..."
}
```

***

#### **NFT Metadata Standard**

Both EVM and Solana NFTs follow compatible metadata:

```
{
"name": "NFT Name",
"symbol": "SYM", "description": "Description", "image": "ipfs://...", "attributes": [
{ "trait_type": "Background", "value": "Blue" },
{ "trait_type": "Rarity", "value": "Rare" }
],
"seller_fee_basis_points":  500
}
```
