> For the complete documentation index, see [llms.txt](https://docs.minervachain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minervachain.org/protocol/native-transaction.md). Agents can also search and read this documentation through its [MCP server](https://docs.minervachain.org/~gitbook/mcp).

# The native transaction

`MinervaPQTxV1` is Minerva's transaction type. It is an EIP-2718 typed transaction with type byte `0x4D`, accepted through the standard `eth_sendRawTransaction` and through `minerva_sendRawPQTransaction`. The consensus rules reject every other type.

## Fields

| Field                                  | Meaning                                                                                 |
| -------------------------------------- | --------------------------------------------------------------------------------------- |
| `chainId`                              | 77139 mainnet, 77138 testnet, 77137 devnet                                              |
| `nonce`                                | the account's transaction nonce                                                         |
| `maxPriorityFeePerGas`, `maxFeePerGas` | EIP-1559 fee fields                                                                     |
| `gasLimit`                             | gas limit                                                                               |
| `accountAddress`                       | the sender, a Minerva account address                                                   |
| `factorySalt`                          | the salt used to derive the account address                                             |
| `pqPublicKey`                          | the signer's ML-DSA-65 public key (1,952 bytes)                                         |
| `pqAlgorithm`                          | algorithm identifier (ML-DSA-65)                                                        |
| `policyVersion`                        | the account's control-record version the signer claims (0 for a counterfactual account) |
| `to`, `value`, `data`                  | the call, as in any Ethereum transaction; `to` empty deploys a contract                 |
| `context`                              | the ML-DSA context string, the constant `MINERVA_PQ_TX_V1`                              |
| `signature`                            | the ML-DSA-65 signature (3,309 bytes)                                                   |

The signed message binds the network, the transaction version, the chain id, the account address, the nonce, the gas fields, the target, the value, the calldata hash, the algorithm and the policy version. A signature is valid for exactly one transaction on exactly one chain.

## How the node processes it

1. **Decode** the `0x4D` payload.
2. **Verify** the ML-DSA-65 signature over the signing hash with the context `MINERVA_PQ_TX_V1`.
3. **Derive the sender.** The sender is `accountAddress`. The node recomputes the `CREATE2` address from `(pqPublicKey, factorySalt)` and, for a counterfactual account, requires it to match; for a deployed account it reads the control record instead.
4. **Check account control.** A counterfactual sender must use `policyVersion` 0 and the `CREATE2` binding. A deployed sender must present the current key commitment, algorithm and policy version held in `AccountControlRegistry` (`0x…0204`). A rotated-out key fails with `ErrMinervaStaleControlKey`. This check runs at transaction-pool admission and again in block validation.
5. **Charge gas** to the account balance and **execute** the call with the account as `msg.sender`.

Receipts, logs and balances are read through the ordinary `eth_*` methods. In a receipt the transaction `type` is `0x4d`.

## Sizes and gas

A native transaction carries a 1,952-byte public key and a 3,309-byte signature, so its calldata cost is higher than an ECDSA transaction. A plain value transfer from a counterfactual account was estimated at about 485,000 gas on the mainnet; the SDK's `estimateDirectCallGas` adds 30 % to the node's estimate. Fees are small in absolute terms because the base fee is low, but set the gas limit from an estimate rather than the Ethereum default of 21,000.

## Submission paths

| Path                           | Where                                                                     | Notes                                                                 |
| ------------------------------ | ------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `eth_sendRawTransaction`       | any node RPC                                                              | the raw `0x4d…` bytes as the single parameter                         |
| `minerva_sendRawPQTransaction` | any node RPC                                                              | same, refuses non-PQ payloads                                         |
| `POST /pq-dev/send-raw`        | public relayer at `mainnet.minervachain.org` / `testnet.minervachain.org` | body `{"rawTransaction":"0x4d…"}`; a forwarder with no key of its own |

The public RPC endpoints are rate limited per IP and accept POST only.

## Why a new type instead of account abstraction

Smart accounts alone still need someone to pay gas and submit, which on other chains is a bundler or relayer holding an ECDSA key. Making the smart account the native sender removes that key entirely: there is nothing for a quantum adversary to break between the user's ML-DSA signature and the chain.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.minervachain.org/protocol/native-transaction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
