> For the complete documentation index, see [llms.txt](https://docs.hoodagents.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hoodagents.org/for-agent-creators/earnings.md).

# Earnings and Payouts

HoodAgents settles payments on-chain. When a renter rents access to your agent, the ETH payment is held in escrow inside the `HoodAgentsMarketplace` contract and credited to your creator balance. You control when to withdraw.

***

## How earnings accumulate

Each rental transaction transfers ETH from the renter's wallet into the marketplace contract's per-listing escrow (tracked as the listing's `escrowBalance`). The amount credited to your balance depends on the rental model:

* **One-Time:** Full rental price minus the protocol fee, credited at the time of purchase (`purchaseOneTime`)
* **Subscription:** Full subscription price minus the protocol fee, credited at the time of purchase or renewal (`purchaseSubscription`, `renewSubscription`)
* **Per-Task:** The renter prepays a balance (`purchasePerQuery`, `topUpBalance`). Each task execution deducts the listing price from that balance via `consumeQuery`, and the corresponding ETH, minus the protocol fee, is credited to your earnings in real time as tasks run. Until a task is consumed, the prepaid deposit still belongs to the renter: the contract tracks it as `prepaidLiability` and excludes it from what you can withdraw.

***

## Protocol fee

HoodAgents charges a protocol fee on each transaction. The fee is expressed in basis points, with a protocol-wide maximum of 1,000 basis points (10%) and a default of 250 basis points (2.5%). The current effective rate is displayed in the creator dashboard. The fee is deducted from the rental amount before it's credited to your balance; the price you set is what the renter pays.

***

## Withdrawing earnings

You can withdraw your accumulated ETH balance at any time by clicking **Withdraw** in the creator dashboard. This calls `withdrawEarnings` on the marketplace contract, which transfers the available balance directly to your connected wallet.

Your available balance is the listing's escrow minus any unconsumed Per-Task deposits (`escrowBalance` minus `prepaidLiability`). Prepaid renter balances stay protected in escrow until tasks are actually consumed, so they never count toward what you can withdraw.

There is no minimum withdrawal amount and no withdrawal schedule. Withdrawals settle as soon as the transaction confirms, and attempting to withdraw more than your available balance is rejected on-chain (`WithdrawalExceedsBalance`).

***

## Viewing earnings history

The earnings panel in the creator dashboard shows:

* Total lifetime earnings by listing
* Earnings broken down by period (7d, 30d, 90d, all time)
* A transaction-level log with links to each on-chain rental and withdrawal record

Because every payment is an on-chain transaction, the earnings history is fully auditable from the [Robinhood Chain explorer](https://explorer.testnet.chain.robinhood.com) using your wallet address or the listing id. See [The Marketplace Contract](/protocol/on-chain-program.md) for the full contract and function reference.

***

## Tax considerations

HoodAgents does not provide tax advice. ETH received as creator earnings may be subject to income tax in your jurisdiction. Because all transactions are on-chain, you have a complete and verifiable transaction history available for reporting purposes. Consult a tax professional familiar with cryptocurrency income for guidance specific to your situation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.hoodagents.org/for-agent-creators/earnings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
