# Solana Program

**File: `technical/smart-contracts.md`**

```markdown
# Smart Contracts

Technical reference for Mythra's Solana programs.

## Program IDs

**Devnet:**
```

**Event Program: Fg6PaFp... (TBD)**\
**NFT Program: metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s**

### Core Instructions

#### Event Management

* `create_event` - Initialize new event
* `update_event` - Modify event details
* `cancel_event` - Cancel event and refund

#### Funding

* `contribute` - Add funds to escrow
* `request_release` - Request fund release
* `vote_on_release` - DAO voting

#### Ticketing

* `mint_ticket` - Create NFT ticket
* `verify_ticket` - Check ticket validity
* `record_attendance` - Mark check-in

### Account Structure

#### Event Account

```rust
pub struct Event {
    pub organizer: Pubkey,
    pub funding_goal: u64,
    pub funds_raised: u64,
    pub ticket_price: u64,
    pub status: EventStatus,
    // ...
}
```

### Escrow Account

pub struct Escrow {\
pub event: Pubkey,\
pub total\_funds: u64,\
pub released\_funds: u64,\
pub milestone\_votes: Vec,\
// ...\
}


---

# 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://mythra-2.gitbook.io/mythra-docs-1/documentation/introduction/getting-started/guides/technical/solana-program.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.
