# On-Chain Programs

Tessera's token and referral infrastructure is deployed on Solana mainnet. All program addresses and token mints listed below can be independently verified using any Solana block explorer.

***

### Programs

#### Token Program

| Property          | Value                                                                                     |
| ----------------- | ----------------------------------------------------------------------------------------- |
| Program ID        | `TESQvsR4TmYxiroPPQgZpVRoSFG8pru4fsYr67iv6kf`                                             |
| Network           | Solana Mainnet-Beta                                                                       |
| Framework         | Anchor (Solana Token-2022)                                                                |
| Upgrade Authority | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                               |
| Explorer          | [View on Solscan](https://solscan.io/account/TESQvsR4TmYxiroPPQgZpVRoSFG8pru4fsYr67iv6kf) |

**Capabilities:**

* Token-2022 mint initialization with transfer fee extension
* On-chain metadata (name, symbol, URI)
* Program-level fee manager configuration
* Transfer fee configuration updates
* Fee harvesting and withdrawal to fee manager

#### Referral Program

| Property              | Value                                                                                     |
| --------------------- | ----------------------------------------------------------------------------------------- |
| Program ID            | `TESMgr3q4s1CK5nGz7bmkbMQBQeSt8N9wpZjTDWm2cY`                                             |
| Network               | Solana Mainnet-Beta                                                                       |
| Framework             | Anchor                                                                                    |
| Upgrade Authority     | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                               |
| Config Authority      | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                               |
| Default Fee Recipient | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                               |
| Explorer              | [View on Solscan](https://solscan.io/account/TESMgr3q4s1CK5nGz7bmkbMQBQeSt8N9wpZjTDWm2cY) |

**Capabilities:**

* Referral code creation and management
* User registration with referral codes
* Multi-tier referral tracking (3 levels: direct, parent, grandparent)
* Admin management (add/remove privileged admins)
* Configurable tier splits (default: 30% / 3% / 2%)

***

### Token Mints

All Tessera tokens are built on the Token-2022 standard with the following extensions enabled: Transfer Fee, Transfer Hook, Metadata Pointer, and On-Chain Metadata.

#### T-SpaceX (tSpaceX)

| Property                      | Value                                                                                   |
| ----------------------------- | --------------------------------------------------------------------------------------- |
| Mint Address                  | `TSPXcLV76s6V2zDiZQ18kBfcbnjaE2ZzNT3ga2Pd99v`                                           |
| Symbol                        | tSpaceX                                                                                 |
| Decimals                      | 9                                                                                       |
| Transfer Fee                  | 0.2% (20 bps)                                                                           |
| Mint Authority                | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                             |
| Transfer Fee Config Authority | `EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW` (Fireblocks)                             |
| Explorer                      | [View on Solscan](https://solscan.io/token/TSPXcLV76s6V2zDiZQ18kBfcbnjaE2ZzNT3ga2Pd99v) |

***

### Authorities & Security

All privileged roles across both programs and token mints are held by a Fireblocks institutional custody wallet (`EXvTtxurWBUNNCtLojaN8ZBJFNJPZFSH3szoih9hh7YW`), providing enterprise-grade key management and access controls.

| Authority                     | Scope                           | Description                                                              |
| ----------------------------- | ------------------------------- | ------------------------------------------------------------------------ |
| Upgrade Authority             | Token Program, Referral Program | Can deploy program upgrades                                              |
| Mint Authority                | Each token mint                 | Can mint and burn tokens                                                 |
| Transfer Fee Config Authority | Each token mint                 | Can update transfer fee rates                                            |
| Config Authority              | Referral Program                | Can update referral tier splits, manage admins, and update fee recipient |
| Default Fee Recipient         | Referral Program                | Receives the protocol's share of referral fees                           |

Fee withdrawals from collected transfer fees are managed through a program-derived authority (PDA) within the Token Program's fee manager, ensuring withdrawals follow on-chain rules without direct wallet access.

Both programs were independently audited prior to mainnet deployment. See [Security & Audits](https://docs.tessera.pe/technicals/security-audits) for details and the full audit report.
