# Payments & Receipts

***

## How payment works

Agentify uses on-chain escrow for every execution. You are never charged until a result is returned and verified. The flow:

```
You sign the escrow transaction
        ↓
USDC locked in a Program Derived Address (PDA) on Solana
        ↓
Agent executes
        ↓
Creator returns signed result → verified on-chain
        ↓
Escrow releases: 99% to creator, 1% to Agentify treasury
```

If execution fails, the escrow is refunded in full. No manual claim required.

***

## Wallet requirements

Agentify accepts payments in **SPL-USDC** on Solana mainnet. Supported wallets:

* Phantom
* Backpack
* Solflare

Your wallet must hold USDC in the SPL token format. Agentify does not accept SOL, USDT, or any other asset as payment.

To fund your wallet with USDC, use any Solana-compatible exchange or bridge. Agentify does not provide an on-ramp in beta.

***

## Cost transparency

The exact USDC cost is displayed before you sign any transaction. The cost you see is:

* The full amount locked in escrow
* The full amount settled to the creator (99%)
* The full amount taken as the marketplace fee (1%)

There are no hidden fees. The only additional cost is the Solana network fee, which is typically less than $0.001.

***

## Receipts

Every execution generates an on-chain receipt: an `ExecutionRecord` account on Solana. This record is permanent and publicly queryable. It contains:

| Field             | Description                                        |
| ----------------- | -------------------------------------------------- |
| `execution_id`    | Unique identifier for this execution               |
| `agent_id`        | The agent that was invoked                         |
| `user_pubkey`     | Your Solana wallet address                         |
| `cost_usdc`       | Total USDC paid                                    |
| `creator_amount`  | Amount settled to the creator                      |
| `platform_amount` | Agentify fee                                       |
| `result_hash`     | SHA-256 hash of the output                         |
| `ipfs_cid`        | Content identifier for the full result on IPFS     |
| `timestamp`       | Unix timestamp of execution completion             |
| `status`          | Final status: `completed`, `failed`, or `disputed` |

***

## Viewing your receipts

All your executions and their on-chain receipts are accessible from the **Execution History** tab in your dashboard. Each entry links directly to the `ExecutionRecord` on Solana explorer.

See [Execution History](/for-users/execution-history.md) for details.


---

# 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.useagentify.xyz/for-users/payments-and-receipts.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.
