> For the complete documentation index, see [llms.txt](https://gabriel-j-shapiro.gitbook.io/metalex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabriel-j-shapiro.gitbook.io/metalex-docs/protocol-how-to-guides/issue-a-cybercert.md).

# Issue a cyberCERT

This is how you mint a new register entry on a cyberCORP — stock, a SAFE, an option, or any [supported security type](/metalex-docs/protocol-reference/security-types.md).

## Prerequisites

* A cyberCORP and its `issuanceManager` address.
* A `CyberCertPrinter` for the security class (create one with `createCertPrinter` if needed).

## 1. (If needed) create the certificate printer

```solidity
import {SecurityClass, SecuritySeries} from "src/CyberCorpConstants.sol";

address printer = IIssuanceManager(issuanceManager).createCertPrinter(
    defaultLegend,                 // string[]
    "Acme Series A Preferred",     // name
    "ACME-A",                      // ticker
    "ipfs://acme-cert-art",        // certificate URI
    SecurityClass.PreferredStock,
    SecuritySeries.SeriesA,
    SHARE_EXTENSION_ADDR           // certificate extension
);
```

## 2. Build the `CertificateDetails`

From [`CyberCertPrinterStorage.sol`](https://github.com/MetaLex-Tech/cybercorps-contracts/blob/develop/src/storage/CyberCertPrinterStorage.sol):

```solidity
import {CertificateDetails} from "src/storage/CyberCertPrinterStorage.sol";

CertificateDetails memory details = CertificateDetails({
    signingOfficerName:                  "Jane Founder",
    signingOfficerTitle:                 "Chief Executive Officer",
    investmentAmountUSD:                 2_500_000e18,
    issuerUSDValuationAtTimeOfInvestment: 20_000_000e18,
    unitsRepresented:                    1_000_000,
    legalDetails:                        "Series A Preferred",
    extensionData:                       abi.encode(/* per the extension */)
});
```

## 3. Mint

| Function                                              | Use when                                                   |
| ----------------------------------------------------- | ---------------------------------------------------------- |
| `createCert(certAddress, to, details)`                | Mint without setting a registered owner.                   |
| `createCertAndAssign(certAddress, investor, details)` | Mint and record the registered owner.                      |
| `createCertAndAssignWithName(...)`                    | As above, plus a holder name and an endorsement signature. |
| `createCertSignAndAssign(...)`                        | As above, plus a registry/agreement reference.             |

```solidity
uint256 tokenId = IIssuanceManager(issuanceManager).createCertAndAssign(
    printer, investor, details
);
```

## Other operations

* **Endorse:** `endorseCertificate(certAddress, tokenId, endorser, signature, agreementId)`.
* **Officer signature:** `addOfficerSignature(certAddress, tokenId, signature)`.
* **Void / unvoid:** `voidCertificate` / `unvoidCertificate`.

## Related

* [IssuanceManager](/metalex-docs/protocol-reference/contracts/issuancemanager.md), [CyberCertPrinter](/metalex-docs/protocol-reference/contracts/cybercertprinter.md).


---

# 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://gabriel-j-shapiro.gitbook.io/metalex-docs/protocol-how-to-guides/issue-a-cybercert.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.
